[gtk+] GDK W32: Print more debug info about events



commit c4c00299b2a136d3440801a27fae2a156ca75093
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Sat Mar 19 11:59:13 2016 +0000

    GDK W32: Print more debug info about events
    
    1) Print timestamps for events
    2) Print wParam and lParam (in hex form) for messages
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763913

 gdk/win32/gdkevents-win32.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 1f802af..1ade31a 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -278,10 +278,11 @@ _gdk_win32_window_procedure (HWND   hwnd,
 {
   LRESULT retval;
 
-  GDK_NOTE (EVENTS, g_print ("%s%*s%s %p",
+  GDK_NOTE (EVENTS, g_print ("%s%*s%s %p %#x %#lx",
                             (debug_indent > 0 ? "\n" : ""),
                             debug_indent, "",
-                            _gdk_win32_message_to_string (message), hwnd));
+                            _gdk_win32_message_to_string (message), hwnd,
+                            wparam, lparam));
   debug_indent += 2;
   retval = inner_window_procedure (hwnd, message, wparam, lparam);
   debug_indent -= 2;
@@ -679,7 +680,9 @@ _gdk_win32_print_event (const GdkEvent *event)
     default: g_assert_not_reached ();
     }
 
-  g_print (" %p ", event->any.window ? GDK_WINDOW_HWND (event->any.window) : NULL);
+  g_print (" %p @ %ums ",
+           event->any.window ? GDK_WINDOW_HWND (event->any.window) : NULL,
+           gdk_event_get_time (event));
 
   switch (event->any.type)
     {


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