[gtk+/xi2: 1031/1239] Add back debug optional code.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 1031/1239] Add back debug optional code.
- Date: Tue, 29 Sep 2009 10:55:13 +0000 (UTC)
commit fa42e00f01b27bb3e95510916ea95036aa41df4f
Author: Carlos Garnacho <carlos gnome org>
Date: Fri Sep 4 19:46:39 2009 +0200
Add back debug optional code.
gdk/x11/gdkmain-x11.c | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c
index 9ac6223..ffda4ae 100644
--- a/gdk/x11/gdkmain-x11.c
+++ b/gdk/x11/gdkmain-x11.c
@@ -167,13 +167,19 @@ _gdk_windowing_device_grab (GdkDevice *device,
return GDK_GRAB_NOT_VIEWABLE;
display = gdk_device_get_display (device);
- status = GDK_DEVICE_GET_CLASS (device)->grab (device,
- native,
- owner_events,
- event_mask,
- confine_to,
- cursor,
- time);
+
+#ifdef G_ENABLE_DEBUG
+ if (_gdk_debug_flags & GDK_DEBUG_NOGRABS)
+ status = GrabSuccess;
+ else
+#endif
+ status = GDK_DEVICE_GET_CLASS (device)->grab (device,
+ native,
+ owner_events,
+ event_mask,
+ confine_to,
+ cursor,
+ time);
if (status == GDK_GRAB_SUCCESS)
_gdk_x11_roundtrip_async (display,
has_pointer_grab_callback,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]