forked from AuroraMiddleware/gtk
broadway: Fix various typos in mouse button event reporting
This commit is contained in:
parent
ca203adc73
commit
99d194b747
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user