[gtk+/client-side-windows: 230/284] Use _gdk_display_unset_has_*_grab in break_all_grabs()
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 230/284] Use _gdk_display_unset_has_*_grab in break_all_grabs()
- Date: Thu, 2 Apr 2009 14:19:15 -0400 (EDT)
commit 30f83d8398b88f51fba4627f4dae81297f82daf5
Author: Richard Hult <richard imendio com>
Date: Mon Feb 2 15:36:26 2009 +0100
Use _gdk_display_unset_has_*_grab in break_all_grabs()
---
gdk/quartz/gdkevents-quartz.c | 24 +++++++-----------------
1 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 36c78df..4e8d74d 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]