[mutter/wip/tablet-protocol-v2: 14/14] wayland: Initialize wl_tablet_seat for seat0



commit a42ddb74f5b0a80fe4148b1bdfa79890bec09b37
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 ff40c59..d628812 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)
                     &wl_tablet_manager_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]