mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 22:54:44 +00:00
Avoid using CurrentTime when focusing, handle it better in case we miss
2005-02-08 Elijah Newren <newren@gmail.com> Avoid using CurrentTime when focusing, handle it better in case we miss any cases. Fixes #166732. * src/window.c: (meta_window_shade): use meta_display_get_current_time_roundtrip() to ensure we have a valid timestamp, (meta_window_unshade): same * src/display.c: (meta_display_set_input_focus_window): If CurrentTime was passed, get one from the XServer in addition to throwing a warning, (meta_display_focus_the_no_focus_window): same
This commit is contained in:

committed by
Elijah Newren

parent
454e595ef8
commit
fe1416c65f
@@ -2109,7 +2109,7 @@ meta_window_shade (MetaWindow *window)
|
||||
"Re-focusing window %s after shading it\n",
|
||||
window->desc);
|
||||
meta_window_focus (window,
|
||||
meta_display_get_current_time (window->display));
|
||||
meta_display_get_current_time_roundtrip (window->display));
|
||||
|
||||
set_net_wm_state (window);
|
||||
}
|
||||
@@ -2130,7 +2130,8 @@ meta_window_unshade (MetaWindow *window)
|
||||
meta_topic (META_DEBUG_FOCUS,
|
||||
"Focusing window %s after unshading it\n",
|
||||
window->desc);
|
||||
meta_window_focus (window, meta_display_get_current_time (window->display));
|
||||
meta_window_focus (window,
|
||||
meta_display_get_current_time_roundtrip (window->display));
|
||||
|
||||
set_net_wm_state (window);
|
||||
}
|
||||
|
Reference in New Issue
Block a user