Files
DroidDeck/tools/gamescope/patches/0141-nested-mouse-moves-when-touch-is-disabled.patch
T
xlulx 79d41b29ad fix(gamescope): the nested mouse moves the pointer while touch is Disabled (#2961)
The nested Wayland pointer reaches wlserver as touch 0, and in the Disabled
touch click mode wlserver_touchmotion returned before moving anything.
Buttons go through wlserver_mousebutton, so they still arrived, at an X
pointer that stayed at (0,0). Steam picks Disabled for Don't Starve
Together: DroidDeck's cursor followed the mouse while every click landed
in the top-left corner. The nested pointer now warps the X pointer in
Disabled as in the other modes; real fingers are still ignored.
2026-11-24 17:49:54 -05:00

17 lines
475 B
Diff

diff --git a/src/wlserver.cpp b/src/wlserver.cpp
index df352b0..9740875 100644
--- a/src/wlserver.cpp
+++ b/src/wlserver.cpp
@@ -3326,7 +3326,10 @@ void wlserver_touchmotion( double x, double y, int touch_id, uint32_t time, bool
}
else if ( eMode == gamescope::TouchClickModes::Disabled )
{
- return;
+ if ( !bAlwaysWarpCursor )
+ return;
+
+ wlserver_mousewarp( tx, ty, time, false );
}
else if ( eMode == gamescope::TouchClickModes::Trackpad )
{