Be willing to unfocus the grab window when we are unmanaging it

When we are unmanaging the grab window, we /need/ to unfocus it,
so we shouldn't bail out early from meta_window_focus().

https://bugzilla.gnome.org/show_bug.cgi?id=711618
This commit is contained in:
Owen W. Taylor 2013-12-18 09:23:08 -05:00
parent 732c059235
commit a42305edab

View File

@ -6291,7 +6291,8 @@ meta_window_focus (MetaWindow *window,
window->desc, window->input, window->take_focus);
if (window->display->grab_window &&
window->display->grab_window->all_keys_grabbed)
window->display->grab_window->all_keys_grabbed &&
!window->display->grab_window->unmanaging)
{
meta_topic (META_DEBUG_FOCUS,
"Current focus window %s has global keygrab, not focusing window %s after all\n",