Use _gdk_display_unset_has_*_grab in break_all_grabs()

This commit is contained in:
Richard Hult 2009-02-02 15:36:26 +01:00 committed by Alexander Larsson
parent 65aef2099a
commit 30f83d8398

View File

@ -193,24 +193,14 @@ gdk_pointer_grab (GdkWindow *window,
static void
break_all_grabs (guint32 time)
{
/*
if (_gdk_quartz_keyboard_grab_window)
{
generate_grab_broken_event (_gdk_quartz_keyboard_grab_window,
TRUE,
NULL);
g_object_unref (_gdk_quartz_keyboard_grab_window);
_gdk_quartz_keyboard_grab_window = NULL;
}
*/
if (_gdk_display->keyboard_grab.window)
_gdk_display_unset_has_keyboard_grab (_gdk_display, FALSE);
if (_gdk_display->pointer_grab.window)
{
g_print ("break all grabs\n");
_gdk_display_unset_has_pointer_grab (_gdk_display,
_gdk_display->pointer_grab.implicit,
FALSE,
time);
}
_gdk_display_unset_has_pointer_grab (_gdk_display,
_gdk_display->pointer_grab.implicit,
FALSE,
time);
}
static void