mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
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.
This commit is contained in:
parent
7f906bef06
commit
e12669e230
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user