[gtk+/broadway: 233/246] broadway: Fix various typos in mouse button event reporting
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/broadway: 233/246] broadway: Fix various typos in mouse button event reporting
- Date: Tue, 15 Mar 2011 12:00:37 +0000 (UTC)
commit 99d194b74710e8a0eb6aa35262ba3bc83cfa028d
Author: Alexander Larsson <alexl redhat com>
Date: Mon Mar 14 15:24:25 2011 +0100
broadway: Fix various typos in mouse button event reporting
gdk/broadway/broadway.js | 4 ++--
gdk/broadway/gdkeventsource.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 5802295..7835428 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -310,7 +310,7 @@ function handleCommands(cmd_obj)
var pos = getPositionsFromAbsCoord(last_x, last_y, id);
- send_input ("q", [pos.root_x, pos.root_y, pos.win_x, pos.win_x, window_with_mouse]);
+ send_input ("q", [pos.root_x, pos.root_y, pos.win_x, pos.win_y, window_with_mouse]);
break;
case 'g': // Grab
@@ -524,7 +524,7 @@ function on_mouse_up (ev) {
var pos = getPositionsFromEvent(ev, id);
var button = ev.button + 1;
last_state = last_state & ~getButtonMask (button);
- send_input ("B", [id, pos.root_x, pos.root_y, pos.win_x, pos.win_y, last_state, , ev.timeStamp, button]);
+ send_input ("B", [id, pos.root_x, pos.root_y, pos.win_x, pos.win_y, last_state, ev.timeStamp, button]);
if (grab.window != null && grab.implicit)
doUngrab(time);
diff --git a/gdk/broadway/gdkeventsource.c b/gdk/broadway/gdkeventsource.c
index f092581..7b9e188 100644
--- a/gdk/broadway/gdkeventsource.c
+++ b/gdk/broadway/gdkeventsource.c
@@ -264,7 +264,7 @@ _gdk_broadway_events_got_input (GdkDisplay *display,
event->button.y = data.win_y;
event->button.x_root = data.root_x;
event->button.y_root = data.root_y;
- event->button.button = button + 1;
+ event->button.button = button;
event->button.state = data.state;
gdk_event_set_device (event, display->core_pointer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]