]> git.mdlowis.com Git - proto/labwc.git/commitdiff
server: create tablet-v2-manager
authorJens Peters <jp7677@gmail.com>
Thu, 11 Apr 2024 21:48:00 +0000 (23:48 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 27 May 2024 20:40:50 +0000 (22:40 +0200)
include/labwc.h
src/server.c

index c281c5cdb5c187e980781b237814a5364c7033af..8f26887aa0e0c2aaef2cad1af4cd47ef82b03fe8 100644 (file)
@@ -42,6 +42,7 @@
 #include <wlr/types/wlr_tearing_control_v1.h>
 #include <wlr/types/wlr_text_input_v3.h>
 #include <wlr/types/wlr_input_method_v2.h>
+#include <wlr/types/wlr_tablet_v2.h>
 #include <wlr/util/log.h>
 #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;
index 503838cd9400388644f87dfa76632280508ccfd5..87cbd9e7022d38cd8af3a6ebf940c8be390a3c28 100644 (file)
@@ -16,6 +16,7 @@
 #include <wlr/types/wlr_screencopy_v1.h>
 #include <wlr/types/wlr_single_pixel_buffer_v1.h>
 #include <wlr/types/wlr_viewporter.h>
+#include <wlr/types/wlr_tablet_v2.h>
 #if HAVE_XWAYLAND
 #include <wlr/xwayland.h>
 #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