[mutter/wip/tablet-protocol-v3: 18/18] wayland: Initialize wl_tablet_seat for seat0



commit 2357dd645c8d2a256017eb89c9c9eebaff0c46fb
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Oct 28 17:02:29 2015 +0100

    wayland: Initialize wl_tablet_seat for seat0

 src/wayland/meta-wayland-tablet-manager.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet-manager.c b/src/wayland/meta-wayland-tablet-manager.c
index 1b91024..8f2ef00 100644
--- a/src/wayland/meta-wayland-tablet-manager.c
+++ b/src/wayland/meta-wayland-tablet-manager.c
@@ -114,6 +114,7 @@ static MetaWaylandTabletManager *
 meta_wayland_tablet_manager_new (MetaWaylandCompositor *compositor)
 {
   MetaWaylandTabletManager *tablet_manager;
+  MetaWaylandTabletSeat *tablet_seat;
 
   tablet_manager = g_slice_new0 (MetaWaylandTabletManager);
   tablet_manager->compositor = compositor;
@@ -126,6 +127,10 @@ meta_wayland_tablet_manager_new (MetaWaylandCompositor *compositor)
                     &zwp_tablet_manager1_interface, 1,
                     compositor, bind_tablet_manager);
 
+  /* Ensure the tablet_seat for seat0 is initialized */
+  tablet_seat = meta_wayland_tablet_seat_new (tablet_manager);
+  g_hash_table_insert (tablet_manager->seats, compositor->seat, tablet_seat);
+
   return tablet_manager;
 }
 


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