mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
gdk: Set correct GdkModifierType on pointer emulated events
This commit is contained in:
parent
fcbcac0ca3
commit
0bb2e6f264
@ -9406,6 +9406,9 @@ proxy_pointer_event (GdkDisplay *display,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (is_touch_type (source_event->type) && !is_touch_type (event_type))
|
||||
state |= GDK_BUTTON1_MASK;
|
||||
|
||||
if (event_win &&
|
||||
gdk_device_get_device_type (device) != GDK_DEVICE_TYPE_MASTER &&
|
||||
gdk_window_get_device_events (event_win, device) == 0)
|
||||
@ -9636,6 +9639,9 @@ proxy_button_event (GdkEvent *source_event,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (source_event->type == GDK_TOUCH_END && !is_touch_type (type))
|
||||
state |= GDK_BUTTON1_MASK;
|
||||
|
||||
if (event_win == NULL || display->ignore_core_events)
|
||||
return TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user