diff options
author | Nate Eldredge <nate@thatsmathematics.com> | 2022-05-29 15:12:37 -0600 |
---|---|---|
committer | Nate Eldredge <nate@thatsmathematics.com> | 2022-05-29 15:30:19 -0600 |
commit | 5faa300c5ea73e2093746168c6d003bc3ec56c4c (patch) | |
tree | 117cf5ee302b1749db7ca161c981e5001f002ed0 /gdk/x11 | |
parent | 491d1f67c70ac6bb0fe2cf413feb9199e4414c2e (diff) | |
download | gtk+-5faa300c5ea73e2093746168c6d003bc3ec56c4c.tar.gz |
Recognize "stylus" devices as GDK_SOURCE_PEN
Add "stylus" to the list of substrings in a device name that cause it to be recognized
as a GDK_SOURCE_PEN device (previously "wacom", "pen" and "eraser"). Some devices
just use "stylus" in their name, and are otherwise recognized as
GDK_SOURCE_TOUCHSCREEN instead.
Fixes #4394.
Diffstat (limited to 'gdk/x11')
-rw-r--r-- | gdk/x11/gdkdevicemanager-xi2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index a146333b5d..ac27564603 100644 --- a/gdk/x11/gdkdevicemanager-xi2.c +++ b/gdk/x11/gdkdevicemanager-xi2.c @@ -485,6 +485,7 @@ create_device (GdkX11DeviceManagerXI2 *device_manager, input_source = GDK_SOURCE_TABLET_PAD; else if (strstr (tmp_name, "wacom") || strstr (tmp_name, "pen") || + strstr (tmp_name, "stylus") || strstr (tmp_name, "eraser")) input_source = GDK_SOURCE_PEN; else if (!strstr (tmp_name, "mouse") && |