[gtk+/broadway: 27/71] Fix button numbers in events (starts with 1, not 0)
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/broadway: 27/71] Fix button numbers in events (starts with 1, not 0)
- Date: Thu, 25 Nov 2010 21:17:32 +0000 (UTC)
commit 163a278d130cc9361aea1ed43ef867504b34e27f
Author: Alexander Larsson <alexl redhat com>
Date: Fri Nov 19 22:37:26 2010 +0100
Fix button numbers in events (starts with 1, not 0)
gdk/broadway/gdkdisplay-broadway.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c
index b4b1850..31eda8d 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]