mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Add relative pointer
This commit is contained in:
parent
cedde21c96
commit
ee4b8a3938
3 changed files with 21 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include <wlr/types/wlr_gtk_primary_selection.h>
|
||||
#include <wlr/types/wlr_idle.h>
|
||||
#include <wlr/types/wlr_layer_shell_v1.h>
|
||||
#include <wlr/types/wlr_relative_pointer_v1.h>
|
||||
#include <wlr/types/wlr_pointer_constraints_v1.h>
|
||||
#include <wlr/types/wlr_screencopy_v1.h>
|
||||
#include <wlr/types/wlr_server_decoration.h>
|
||||
|
|
@ -106,6 +107,9 @@ bool server_init(struct sway_server *server) {
|
|||
server->xdg_decoration.notify = handle_xdg_decoration;
|
||||
wl_list_init(&server->xdg_decorations);
|
||||
|
||||
server->relative_pointer_manager =
|
||||
wlr_relative_pointer_manager_v1_create(server->wl_display);
|
||||
|
||||
server->pointer_constraints =
|
||||
wlr_pointer_constraints_v1_create(server->wl_display);
|
||||
server->pointer_constraint.notify = handle_pointer_constraint;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue