gdk: Set correct GdkModifierType on pointer emulated events

This commit is contained in:
Carlos Garnacho 2012-02-27 13:08:38 +01:00 committed by Matthias Clasen
parent fcbcac0ca3
commit 0bb2e6f264

View File

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