diff options
-rw-r--r-- | 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 1b910240f..8f2ef00a5 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; } |