mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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.
This commit is contained in:
parent
491d1f67c7
commit
5faa300c5e
@ -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") &&
|
||||
|
Loading…
Reference in New Issue
Block a user