diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-09 08:33:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-21 09:14:22 +0200 |
commit | ec9b0ec8b4d87e85ba9580809dd544ddbc3a9667 (patch) | |
tree | c26bb956b27687e4ffee2e1ca18f62211763b5fa | |
parent | 4e340afce07097b4459b6ee16934cce76201c14b (diff) | |
download | gtk+-ec9b0ec8b4d87e85ba9580809dd544ddbc3a9667.tar.gz |
gesture stylus: Fix condition
Now that the paint demo lets us test this, it has
become apparent that this condition is wrong, and
we don't get the expected events if stylus-only is
FALSE.
-rw-r--r-- | gtk/gtkgesturestylus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkgesturestylus.c b/gtk/gtkgesturestylus.c index bc3da9351d..d2e2248e99 100644 --- a/gtk/gtkgesturestylus.c +++ b/gtk/gtkgesturestylus.c @@ -103,7 +103,7 @@ gtk_gesture_stylus_handle_event (GtkEventController *controller, priv = gtk_gesture_stylus_get_instance_private (GTK_GESTURE_STYLUS (controller)); GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_stylus_parent_class)->handle_event (controller, event, x, y); - if (!(priv->stylus_only || gdk_event_get_device_tool (event))) + if (priv->stylus_only && !gdk_event_get_device_tool (event)) return FALSE; switch ((guint) gdk_event_get_event_type (event)) |