aboutsummaryrefslogtreecommitdiff
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
authorMark Bolhuis <mark@bolhuis.dev>2023-06-26 21:43:13 +0100
committerSimon Ser <contact@emersion.fr>2023-06-26 22:57:46 +0200
commit20c91335f6ba515e43b444fafd52b822bd460eda (patch)
treedd7b8bf58795108127336a75933f190fd89ef244 /sway/input/input-manager.c
parent974a8629a8f0f403028332543e4bd31d98f611c1 (diff)
input: Move wlr_pointer_gestures_v1 to sway_input_manager
On multi-seat configurations a zwp_pointer_gestures_v1 global was created for every seat. Instead, create the global once in the input manager, to be shared across all seats.
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index 5f7dfb42..db82bb4c 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -495,6 +495,8 @@ struct sway_input_manager *input_manager_create(struct sway_server *server) {
wl_signal_add(&input->keyboard_shortcuts_inhibit->events.new_inhibitor,
&input->keyboard_shortcuts_inhibit_new_inhibitor);
+ input->pointer_gestures = wlr_pointer_gestures_v1_create(server->wl_display);
+
return input;
}