From de5cba4fc99d8293def12436983ac1c7e2fddc9c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 29 Jun 2014 17:58:56 -0400 Subject: [PATCH] gdkdevicemanager-xi2: Fix debug outputs for button events We had the arguments in the wrong order here. --- gdk/x11/gdkdevicemanager-xi2.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index 6c525b9ee4..fcc893bf9f 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -1227,12 +1227,16 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator, GdkDevice *source_device; GDK_NOTE (EVENTS, - g_message ("button %s:\twindow %ld\n\tdevice:%u\n" - "\tsource device:%u\n\tbutton number: %u\n" + g_message ("button %s:\twindow %ld\n" + "\tdevice:%u\n" + "\tsource device:%u\n" + "\tbutton number: %u\n" "\tx,y: %.2f %.2f", (ev->evtype == XI_ButtonPress) ? "press" : "release", - xev->event, xev->detail, - xev->deviceid, xev->sourceid, + xev->event, + xev->deviceid, + xev->sourceid, + xev->detail, xev->event_x, xev->event_y)); if (ev->evtype == XI_ButtonRelease &&