diff options
author | Mark Bolhuis <mark@bolhuis.dev> | 2023-06-26 21:43:13 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-26 22:57:46 +0200 |
commit | 20c91335f6ba515e43b444fafd52b822bd460eda (patch) | |
tree | dd7b8bf58795108127336a75933f190fd89ef244 /sway/input/cursor.c | |
parent | Use "default" XCursor instead of "left_ptr" (diff) | |
download | sway-20c91335f6ba515e43b444fafd52b822bd460eda.tar.gz sway-20c91335f6ba515e43b444fafd52b822bd460eda.tar.zst sway-20c91335f6ba515e43b444fafd52b822bd460eda.zip |
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/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 7a4dd19f..f970e6a2 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -1154,9 +1154,6 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat) { | |||
1154 | wl_list_init(&cursor->image_surface_destroy.link); | 1154 | wl_list_init(&cursor->image_surface_destroy.link); |
1155 | cursor->image_surface_destroy.notify = handle_image_surface_destroy; | 1155 | cursor->image_surface_destroy.notify = handle_image_surface_destroy; |
1156 | 1156 | ||
1157 | // gesture events | ||
1158 | cursor->pointer_gestures = wlr_pointer_gestures_v1_create(server.wl_display); | ||
1159 | |||
1160 | wl_signal_add(&wlr_cursor->events.hold_begin, &cursor->hold_begin); | 1157 | wl_signal_add(&wlr_cursor->events.hold_begin, &cursor->hold_begin); |
1161 | cursor->hold_begin.notify = handle_pointer_hold_begin; | 1158 | cursor->hold_begin.notify = handle_pointer_hold_begin; |
1162 | wl_signal_add(&wlr_cursor->events.hold_end, &cursor->hold_end); | 1159 | wl_signal_add(&wlr_cursor->events.hold_end, &cursor->hold_end); |