From ecc9df64203abded323a07579daf3b83ece440f1 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Mon, 4 Nov 2024 21:14:25 -0700 Subject: [PATCH] move: Use post input signal for touch move grabs Without this, touch fingers are not set yet which causes a visual jump when attempting to move drag a window with touchscreen devices. Use post signal so that the fingers are properly detected and the correct coordinates are used in the first place. Fixes #2505. --- plugins/single_plugins/move.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/single_plugins/move.cpp b/plugins/single_plugins/move.cpp index 8f726e1f4..af841cd4c 100644 --- a/plugins/single_plugins/move.cpp +++ b/plugins/single_plugins/move.cpp @@ -144,8 +144,8 @@ class wayfire_move : public wf::per_output_plugin_instance_t, } }; - wf::signal::connection_t> on_raw_touch_down = - [=] (wf::input_event_signal *ev) + wf::signal::connection_t> on_raw_touch_down = + [=] (wf::post_input_event_signal *ev) { if (ev->event->touch_id == 0) {