broadway: Fix various typos in mouse button event reporting

This commit is contained in:
Alexander Larsson 2011-03-14 15:24:25 +01:00
parent ca203adc73
commit 99d194b747
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);