[gtk+/wip/wayland-tablet: 1855/1865] demos: Enable multidevice behavior on event-axes demo



commit 93d76dbdb1e113d07592de7948dd10752b6f85e1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 18 15:09:46 2015 +0200

    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.

 demos/gtk-demo/event_axes.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/event_axes.c b/demos/gtk-demo/event_axes.c
index 2756940..6141f7e 100644
--- a/demos/gtk-demo/event_axes.c
+++ b/demos/gtk-demo/event_axes.c
@@ -402,6 +402,7 @@ do_event_axes (GtkWidget *toplevel)
 
       box = gtk_event_box_new ();
       gtk_container_add (GTK_CONTAINER (window), box);
+      gtk_widget_set_support_multidevice (box, TRUE);
       gtk_widget_add_events (box,
                             GDK_POINTER_MOTION_MASK |
                             GDK_BUTTON_PRESS_MASK |


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]