mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Fix button numbers in events (starts with 1, not 0)
This commit is contained in:
parent
884527a958
commit
163a278d13
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user