From 163a278d130cc9361aea1ed43ef867504b34e27f Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 19 Nov 2010 22:37:26 +0100 Subject: [PATCH] Fix button numbers in events (starts with 1, not 0) --- gdk/broadway/gdkdisplay-broadway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c index b4b1850646..31eda8db74 100644 --- a/gdk/broadway/gdkdisplay-broadway.c +++ b/gdk/broadway/gdkdisplay-broadway.c @@ -300,7 +300,7 @@ got_input (GInputStream *stream, event->button.y = y - GDK_WINDOW_OBJECT (window)->y; event->button.x_root = x; event->button.y_root = y; - event->button.button = button; + event->button.button = button + 1; gdk_event_set_device (event, request->display->core_pointer); node = _gdk_event_queue_append (request->display, event);