[gtk+] Support DEBUG_WINDOW_PRINTING even with GDK_NATIVE_WINDOWS



commit d3d7070995b426c89f256c376b373d3b20e9f6fa
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Aug 27 15:55:01 2009 +0200

    Support DEBUG_WINDOW_PRINTING even with GDK_NATIVE_WINDOWS

 gdk/gdkwindow.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index d2dacf2..47c47fa 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9732,6 +9732,18 @@ _gdk_windowing_got_event (GdkDisplay *display,
   if (!event_window)
     return;
 
+  event_private = GDK_WINDOW_OBJECT (event_window);
+
+#ifdef DEBUG_WINDOW_PRINTING
+  if (event->type == GDK_KEY_PRESS &&
+      (event->key.keyval == 0xa7 ||
+       event->key.keyval == 0xbd))
+    {
+      gdk_window_print_tree (event_window, 0,
+			     event->key.keyval == 0xbd);
+    }
+#endif
+
   if (_gdk_native_windows)
     {
       if (event->type == GDK_BUTTON_PRESS &&
@@ -9768,18 +9780,6 @@ _gdk_windowing_got_event (GdkDisplay *display,
       return;
     }
 
-  event_private = GDK_WINDOW_OBJECT (event_window);
-
-#ifdef DEBUG_WINDOW_PRINTING
-  if (event->type == GDK_KEY_PRESS &&
-      (event->key.keyval == 0xa7 ||
-       event->key.keyval == 0xbd))
-    {
-      gdk_window_print_tree (event_window, 0,
-			     event->key.keyval == 0xbd);
-    }
-#endif
-
   if (event->type == GDK_VISIBILITY_NOTIFY)
     {
       event_private->native_visibility = event->visibility.state;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]