mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
gdk: A TOUCHPAD device behaves like a mouse
and not like a TOUCHSCREEN. So treat it like that. https://bugzilla.gnome.org/show_bug.cgi?id=672009
This commit is contained in:
parent
c80436ac35
commit
bd55519f7e
@ -9271,7 +9271,6 @@ proxy_pointer_event (GdkDisplay *display,
|
||||
|
||||
if (pointer_info->need_touch_press_enter &&
|
||||
gdk_device_get_source (pointer_info->last_slave) != GDK_SOURCE_TOUCHSCREEN &&
|
||||
gdk_device_get_source (pointer_info->last_slave) != GDK_SOURCE_TOUCHPAD &&
|
||||
(source_event->type != GDK_TOUCH_UPDATE ||
|
||||
_gdk_event_get_pointer_emulated (source_event)))
|
||||
{
|
||||
@ -9682,8 +9681,7 @@ proxy_button_event (GdkEvent *source_event,
|
||||
* which synthesized a leave notify event, so synthesize another enter
|
||||
* notify to tell the pointer is on the window.
|
||||
*/
|
||||
if (gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN ||
|
||||
gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHPAD)
|
||||
if (gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN)
|
||||
mode = GDK_CROSSING_TOUCH_BEGIN;
|
||||
else
|
||||
mode = GDK_CROSSING_DEVICE_SWITCH;
|
||||
@ -9743,8 +9741,7 @@ proxy_button_event (GdkEvent *source_event,
|
||||
(type == GDK_TOUCH_END &&
|
||||
_gdk_event_get_pointer_emulated (source_event))) &&
|
||||
pointer_window == pointer_info->window_under_pointer &&
|
||||
(gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN ||
|
||||
gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHPAD))
|
||||
gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN)
|
||||
{
|
||||
/* Synthesize a leave notify event
|
||||
* whenever a touch device is released
|
||||
@ -9780,8 +9777,7 @@ proxy_button_event (GdkEvent *source_event,
|
||||
if ((type == GDK_TOUCH_END &&
|
||||
_gdk_event_get_pointer_emulated (source_event)) &&
|
||||
pointer_window == pointer_info->window_under_pointer &&
|
||||
(gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN ||
|
||||
gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHPAD))
|
||||
gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN)
|
||||
{
|
||||
/* Synthesize a leave notify event
|
||||
* whenever a touch device is released
|
||||
|
Loading…
Reference in New Issue
Block a user