From 2322f3efeae8da44227e0acc760ffd3dea153716 Mon Sep 17 00:00:00 2001 From: wochap Date: Tue, 9 Jul 2024 10:30:21 -0500 Subject: [PATCH] sync patch with latest dwl --- .../pointer-gestures-unstable-v1.patch | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/patches/pointer-gestures-unstable-v1/pointer-gestures-unstable-v1.patch b/patches/pointer-gestures-unstable-v1/pointer-gestures-unstable-v1.patch index fa841da..daed5fd 100644 --- a/patches/pointer-gestures-unstable-v1/pointer-gestures-unstable-v1.patch +++ b/patches/pointer-gestures-unstable-v1/pointer-gestures-unstable-v1.patch @@ -1,26 +1,25 @@ -From 5c70217539343573bd4b0b9a15a64d012c74eb01 Mon Sep 17 00:00:00 2001 +From 722db199dcf089ed44590413031cefb4cac4da40 Mon Sep 17 00:00:00 2001 From: wochap -Date: Thu, 11 Apr 2024 14:40:22 -0500 -Subject: [PATCH] Implement pointer-gestures-unstable-v1 +Date: Fri, 5 Jul 2024 10:56:28 -0500 +Subject: [PATCH] implement pointer-gestures-unstable-v1 -Forward the following events to client: swipe_begin, swipe_update, swipe_end, pinch_begin, pinch_update and pinch_end --- dwl.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/dwl.c b/dwl.c -index bf763df..e96ea09 100644 +index dc0437e..ded83e2 100644 --- a/dwl.c +++ b/dwl.c -@@ -36,6 +36,7 @@ - #include +@@ -38,6 +38,7 @@ + #include #include #include +#include #include #include #include -@@ -248,6 +249,12 @@ static void arrangelayer(Monitor *m, struct wl_list *list, +@@ -250,6 +251,12 @@ static void arrangelayer(Monitor *m, struct wl_list *list, static void arrangelayers(Monitor *m); static void axisnotify(struct wl_listener *listener, void *data); static void buttonpress(struct wl_listener *listener, void *data); @@ -33,15 +32,15 @@ index bf763df..e96ea09 100644 static void chvt(const Arg *arg); static void checkidleinhibitor(struct wlr_surface *exclude); static void cleanup(void); -@@ -378,6 +385,7 @@ static struct wlr_gamma_control_manager_v1 *gamma_control_mgr; - static struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr; +@@ -383,6 +390,7 @@ static struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr; static struct wlr_virtual_pointer_manager_v1 *virtual_pointer_mgr; static struct wlr_cursor_shape_manager_v1 *cursor_shape_mgr; + static struct wlr_output_power_manager_v1 *power_mgr; +static struct wlr_pointer_gestures_v1 *pointer_gestures; static struct wlr_pointer_constraints_v1 *pointer_constraints; static struct wlr_relative_pointer_manager_v1 *relative_pointer_mgr; -@@ -628,6 +636,94 @@ buttonpress(struct wl_listener *listener, void *data) +@@ -644,6 +652,94 @@ buttonpress(struct wl_listener *listener, void *data) event->time_msec, event->button, event->state); } @@ -136,7 +135,7 @@ index bf763df..e96ea09 100644 void chvt(const Arg *arg) { -@@ -2446,6 +2542,14 @@ setup(void) +@@ -2556,6 +2652,14 @@ setup(void) virtual_pointer_mgr = wlr_virtual_pointer_manager_v1_create(dpy); LISTEN_STATIC(&virtual_pointer_mgr->events.new_virtual_pointer, virtualpointer); @@ -152,5 +151,4 @@ index bf763df..e96ea09 100644 LISTEN_STATIC(&seat->events.request_set_cursor, setcursor); LISTEN_STATIC(&seat->events.request_set_selection, setsel); -- -2.43.2 - +2.45.1