summaryrefslogtreecommitdiff
path: root/src/display.h
diff options
context:
space:
mode:
authorCraig Black <blackc@speakeasy.net>2002-08-08 04:45:13 +0000
committerCraig Black <blackc@src.gnome.org>2002-08-08 04:45:13 +0000
commit7a598e55678de1dcfabfeb325abd1541bdc8c47a (patch)
tree853c87a61bbf70bd204233668f6f78b0b218623f /src/display.h
parentceb771aeb672f4bae5dfa98d44a388b27a373ded (diff)
downloadmetacity-7a598e55678de1dcfabfeb325abd1541bdc8c47a.tar.gz
clear expected focus window on open
2002-08-07 Craig Black <blackc@speakeasy.net> * src/display.c: (meta_display_open): clear expected focus window on open * src/display.h: add expected_focus_window field * src/window.c: (meta_window_make_fullscreen), (meta_window_unmake_fullscreen): change meta_window_update_layer() to meta_stack_update_layer() so build works again. (meta_window_free), (meta_window_make_fullscreen), (meta_window_focus), (meta_window_notify_focus): keep track of expected focus window after sending WM_TAKE_FOCUS event, previously if a UnmapNotify event arrived before the FocusIn event we would lose focus, fixes #84564.
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h
index a16bc5bc..c48292fd 100644
--- a/src/display.h
+++ b/src/display.h
@@ -153,6 +153,11 @@ struct _MetaDisplay
*/
MetaWindow *focus_window;
+ /* WM_TAKE_FOCUS has been sent but we have not yet
+ * received the resulting FocusIn event for this window
+ */
+ MetaWindow *expected_focus_window;
+
/* Most recently focused list. Always contains all
* live windows.
*/