diff options
author | absrd <fk@bsrd.io> | 2019-01-29 20:52:59 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-30 19:53:59 +0100 |
commit | ee4b8a39385203a560818f99b380565d16bc7665 (patch) | |
tree | d2dad79e472eaa5314f4de46a72abf467d37e628 /sway/server.c | |
parent | Implement pointer-constraints-unstable-v1 (diff) | |
download | sway-ee4b8a39385203a560818f99b380565d16bc7665.tar.gz sway-ee4b8a39385203a560818f99b380565d16bc7665.tar.zst sway-ee4b8a39385203a560818f99b380565d16bc7665.zip |
Add relative pointer
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 82262585..712d8022 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <wlr/types/wlr_gtk_primary_selection.h> | 15 | #include <wlr/types/wlr_gtk_primary_selection.h> |
16 | #include <wlr/types/wlr_idle.h> | 16 | #include <wlr/types/wlr_idle.h> |
17 | #include <wlr/types/wlr_layer_shell_v1.h> | 17 | #include <wlr/types/wlr_layer_shell_v1.h> |
18 | #include <wlr/types/wlr_relative_pointer_v1.h> | ||
18 | #include <wlr/types/wlr_pointer_constraints_v1.h> | 19 | #include <wlr/types/wlr_pointer_constraints_v1.h> |
19 | #include <wlr/types/wlr_screencopy_v1.h> | 20 | #include <wlr/types/wlr_screencopy_v1.h> |
20 | #include <wlr/types/wlr_server_decoration.h> | 21 | #include <wlr/types/wlr_server_decoration.h> |
@@ -106,6 +107,9 @@ bool server_init(struct sway_server *server) { | |||
106 | server->xdg_decoration.notify = handle_xdg_decoration; | 107 | server->xdg_decoration.notify = handle_xdg_decoration; |
107 | wl_list_init(&server->xdg_decorations); | 108 | wl_list_init(&server->xdg_decorations); |
108 | 109 | ||
110 | server->relative_pointer_manager = | ||
111 | wlr_relative_pointer_manager_v1_create(server->wl_display); | ||
112 | |||
109 | server->pointer_constraints = | 113 | server->pointer_constraints = |
110 | wlr_pointer_constraints_v1_create(server->wl_display); | 114 | wlr_pointer_constraints_v1_create(server->wl_display); |
111 | server->pointer_constraint.notify = handle_pointer_constraint; | 115 | server->pointer_constraint.notify = handle_pointer_constraint; |