From 3febcbb9ae6a31edbd64a86f0045148bb052fcff Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 25 Jan 2008 00:35:31 -0500 Subject: skip enter events caused by temporarily raising windows during alt-tab. also caused by the focus cycle indicator moving --- openbox/stacking.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbox/stacking.c') diff --git a/openbox/stacking.c b/openbox/stacking.c index b18c02af..63819ae2 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -114,6 +114,7 @@ void stacking_temp_raise(ObWindow *window) { Window win[2]; GList *it; + gulong start; /* don't use this for internal windows..! it would lower them.. */ g_assert(window_layer(window) < OB_STACKING_LAYER_INTERNAL); @@ -129,7 +130,9 @@ void stacking_temp_raise(ObWindow *window) } win[1] = window_top(window); + start = event_start_ignore_all_enters(); XRestackWindows(ob_display, win, 2); + event_end_ignore_all_enters(start); pause_changes = TRUE; } @@ -139,12 +142,15 @@ void stacking_restore(void) Window *win; GList *it; gint i; + gulong start; win = g_new(Window, g_list_length(stacking_list) + 1); win[0] = screen_support_win; for (i = 1, it = stacking_list; it; ++i, it = g_list_next(it)) win[i] = window_top(it->data); + start = event_start_ignore_all_enters(); XRestackWindows(ob_display, win, i); + event_end_ignore_all_enters(start); g_free(win); pause_changes = FALSE; -- cgit v1.2.3 From dd8cb753c16a902b46400eb4e80288cbaa25ba99 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 27 Jan 2008 02:41:21 -0500 Subject: add a missing #include --- openbox/stacking.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbox/stacking.c') diff --git a/openbox/stacking.c b/openbox/stacking.c index 63819ae2..92a5285d 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -25,6 +25,7 @@ #include "group.h" #include "frame.h" #include "window.h" +#include "event.h" #include "debug.h" GList *stacking_list = NULL; -- cgit v1.2.3