[gnome-control-center/wip/carlosg/calibrator-fixes: 12/12] wacom: Explicitly discard input from touchscreens
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/carlosg/calibrator-fixes: 12/12] wacom: Explicitly discard input from touchscreens
- Date: Sat, 12 Feb 2022 14:34:24 +0000 (UTC)
commit 959edb8a45b232ebeb89b02111150a9afefcf2b5
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Feb 12 14:54:37 2022 +0100
wacom: Explicitly discard input from touchscreens
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1612
panels/wacom/calibrator/calibrator-gui.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/panels/wacom/calibrator/calibrator-gui.c b/panels/wacom/calibrator/calibrator-gui.c
index 8314f7b65..2d5d7ec05 100644
--- a/panels/wacom/calibrator/calibrator-gui.c
+++ b/panels/wacom/calibrator/calibrator-gui.c
@@ -151,6 +151,9 @@ on_gesture_press (GtkGestureClick *gesture,
source = gtk_gesture_get_device (GTK_GESTURE (gesture));
+ if (gdk_device_get_source (source) == GDK_SOURCE_TOUCHSCREEN)
+ return;
+
/* Check matching device if a device was provided */
if (area->device && area->device != source)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]