summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-10-28 17:02:29 +0100
committerCarlos Garnacho <carlosg@gnome.org>2015-11-16 13:54:00 +0100
commit2357dd645c8d2a256017eb89c9c9eebaff0c46fb (patch)
tree7021da150c3811de0e89011f441774b8359af0a9
parent098122333b5f5aca8929d78647b744c25c1c49bb (diff)
downloadmutter-wip/tablet-protocol-v3.tar.gz
wayland: Initialize wl_tablet_seat for seat0wip/tablet-protocol-v3
-rw-r--r--src/wayland/meta-wayland-tablet-manager.c5
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;
}