diff --git a/include/labwc.h b/include/labwc.h index c281c5cd..8f26887a 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -42,6 +42,7 @@ #include #include #include +#include #include #include "config/keybind.h" #include "config/rcxml.h" @@ -333,6 +334,8 @@ struct server { struct wlr_input_method_manager_v2 *input_method_manager; struct wlr_text_input_manager_v3 *text_input_manager; + struct wlr_tablet_manager_v2 *tablet_manager; + /* Set when in cycle (alt-tab) mode */ struct osd_state { struct view *cycle_view; diff --git a/src/server.c b/src/server.c index 503838cd..87cbd9e7 100644 --- a/src/server.c +++ b/src/server.c @@ -16,6 +16,7 @@ #include #include #include +#include #if HAVE_XWAYLAND #include #include "xwayland-shell-v1-protocol.h" @@ -550,6 +551,8 @@ server_init(struct server *server) server->tearing_new_object.notify = new_tearing_hint; wl_signal_add(&server->tearing_control->events.new_object, &server->tearing_new_object); + server->tablet_manager = wlr_tablet_v2_create(server->wl_display); + layers_init(server); #if HAVE_XWAYLAND