Skip to content

Commit

Permalink
move: Use post input signal for touch move grabs (WayfireWM#2508)
Browse files Browse the repository at this point in the history
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 WayfireWM#2505.
  • Loading branch information
soreau authored Nov 12, 2024
1 parent 2aeaf21 commit ea5118a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/single_plugins/move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ class wayfire_move : public wf::per_output_plugin_instance_t,
}
};

wf::signal::connection_t<wf::input_event_signal<wlr_touch_down_event>> on_raw_touch_down =
[=] (wf::input_event_signal<wlr_touch_down_event> *ev)
wf::signal::connection_t<wf::post_input_event_signal<wlr_touch_down_event>> on_raw_touch_down =
[=] (wf::post_input_event_signal<wlr_touch_down_event> *ev)
{
if (ev->event->touch_id == 0)
{
Expand Down

0 comments on commit ea5118a

Please sign in to comment.