Grab pointer on toplevel window, not on nearest native, so that we always get all events on toplevel

This commit is contained in:
Alexander Larsson 2008-12-04 11:19:32 +01:00 committed by Alexander Larsson
parent f39bdc7e0f
commit d47ee4d797

View File

@ -204,7 +204,7 @@ gdk_pointer_grab (GdkWindow * window,
g_return_val_if_fail (GDK_IS_WINDOW (window), 0);
g_return_val_if_fail (confine_to == NULL || GDK_IS_WINDOW (confine_to), 0);
native = _gdk_window_get_impl_window (window);
native = gdk_window_get_toplevel (window);
if (confine_to)
confine_to = _gdk_window_get_impl_window (confine_to);