Skip to content

Commit ea5118a

Browse files
authored
move: Use post input signal for touch move grabs (#2508)
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.
1 parent 2aeaf21 commit ea5118a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/single_plugins/move.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class wayfire_move : public wf::per_output_plugin_instance_t,
144144
}
145145
};
146146

147-
wf::signal::connection_t<wf::input_event_signal<wlr_touch_down_event>> on_raw_touch_down =
148-
[=] (wf::input_event_signal<wlr_touch_down_event> *ev)
147+
wf::signal::connection_t<wf::post_input_event_signal<wlr_touch_down_event>> on_raw_touch_down =
148+
[=] (wf::post_input_event_signal<wlr_touch_down_event> *ev)
149149
{
150150
if (ev->event->touch_id == 0)
151151
{

0 commit comments

Comments
 (0)