diff options
author | Craig Black <blackc@speakeasy.net> | 2002-08-08 04:45:13 +0000 |
---|---|---|
committer | Craig Black <blackc@src.gnome.org> | 2002-08-08 04:45:13 +0000 |
commit | 7a598e55678de1dcfabfeb325abd1541bdc8c47a (patch) | |
tree | 853c87a61bbf70bd204233668f6f78b0b218623f /src/display.h | |
parent | ceb771aeb672f4bae5dfa98d44a388b27a373ded (diff) | |
download | metacity-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.h | 5 |
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. */ |