mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
demos: Enable multidevice behavior on event-axes demo
On wayland we get separate master/slaves for each tablet, we will need to receive crossing events for each master pointer if there's more than one around.
This commit is contained in:
parent
b465ede53b
commit
8e917093df
@ -408,6 +408,7 @@ do_event_axes (GtkWidget *toplevel)
|
|||||||
|
|
||||||
box = gtk_event_box_new ();
|
box = gtk_event_box_new ();
|
||||||
gtk_container_add (GTK_CONTAINER (window), box);
|
gtk_container_add (GTK_CONTAINER (window), box);
|
||||||
|
gtk_widget_set_support_multidevice (box, TRUE);
|
||||||
gtk_widget_add_events (box,
|
gtk_widget_add_events (box,
|
||||||
GDK_POINTER_MOTION_MASK |
|
GDK_POINTER_MOTION_MASK |
|
||||||
GDK_BUTTON_PRESS_MASK |
|
GDK_BUTTON_PRESS_MASK |
|
||||||
|
Loading…
Reference in New Issue
Block a user