server: create tablet-v2-manager

This commit is contained in:
Jens Peters 2024-04-11 23:48:00 +02:00 committed by Consolatis
parent f0a12bb15d
commit 9c219564be
2 changed files with 6 additions and 0 deletions

View 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;

View 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