Commit 61dd925b authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

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.
parent ee894903
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment