gdk: Set correct GdkModifierType on pointer emulated events
This commit is contained in:
committed by
Matthias Clasen
parent
7a7108ba1a
commit
f115a81b50
@@ -9402,6 +9402,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)
|
||||
@@ -9632,6 +9635,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user