mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
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.
17 lines
475 B
Diff
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 )
|
|
{
|