gdk: Ensure to implicitly deactivate grabs when an impl window is hidden

For some reason this wasn't done on windows with an impl, but it totally should.
Probably hidden by grabs in menus and somesuch being done on a child window.
This commit is contained in:
Carlos Garnacho
2017-05-14 21:30:16 +02:00
parent ee894903c7
commit 61dd925b32

View File

@@ -3879,6 +3879,9 @@ gdk_window_hide (GdkWindow *window)
GDK_WINDOW_STATE_WITHDRAWN);
}
else if (was_mapped)
window->state = GDK_WINDOW_STATE_WITHDRAWN;
if (was_mapped)
{
GdkDisplay *display;
GdkSeat *seat;
@@ -3908,7 +3911,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
}
window->state = GDK_WINDOW_STATE_WITHDRAWN;
g_list_free (devices);
}