diff --git a/tools/gamescope/PATCHES.md b/tools/gamescope/PATCHES.md index 974ba58ab..68d83600d 100644 --- a/tools/gamescope/PATCHES.md +++ b/tools/gamescope/PATCHES.md @@ -21,9 +21,10 @@ library list, before anything is published. trip to Xwayland on the paint thread; with no image, wlserver's position is used as upstream does. - `0101-nested-wayland-cursor-routing.patch` - this app: `gamescope_cursor_composite=2` lets the nested Wayland session paint its cursor in the output using the real X pointer position; client - cursor surfaces are cleared to prevent a duplicate at the host pointer, while Gamescope's original - default host-cursor fallback is preserved when its no-keyboard-focus policy selects it. Empty - client cursor images and Gamescope's hidden flag still suppress the painted cursor. + cursor surfaces are cleared to prevent a duplicate at the host pointer, and so is Gamescope's + default host-cursor fallback, which would otherwise show a second arrow until Gamescope gets + keyboard focus. Empty client cursor images and Gamescope's hidden flag still suppress the + painted cursor. - `0110-wayland-backend-touch.patch` - this app: the nested Wayland backend bound only the host's pointer and keyboard, so a finger on the phone's screen never reached Steam. It now binds `wl_touch` too and hands each finger to wlserver's touch path (`wlserver_touchdown` / `motion` / diff --git a/tools/gamescope/patches/0101-nested-wayland-cursor-routing.patch b/tools/gamescope/patches/0101-nested-wayland-cursor-routing.patch index f59201e67..0a4805a83 100644 --- a/tools/gamescope/patches/0101-nested-wayland-cursor-routing.patch +++ b/tools/gamescope/patches/0101-nested-wayland-cursor-routing.patch @@ -74,7 +74,7 @@ index 0000000..d7c21da + + constexpr bool CursorShouldBeForwardedToHost( int cursorCompositeMode, bool useHostCursorFallback ) + { -+ return cursorCompositeMode != 2 || useHostCursorFallback; ++ return cursorCompositeMode != 2; + } + + constexpr bool CursorImageShouldBePainted( bool imageEmpty, bool cursorHidden ) @@ -176,10 +176,10 @@ index 0000000..9c622db + REQUIRE( CursorShouldBeComposited( 2, false, false, true, false ) ); +} + -+TEST_CASE("manual composition retains only the no-focus default cursor fallback", "[cursor_routing]") ++TEST_CASE("manual composition never forwards a cursor to the host", "[cursor_routing]") +{ + REQUIRE_FALSE( CursorShouldBeForwardedToHost( 2, false ) ); -+ REQUIRE( CursorShouldBeForwardedToHost( 2, true ) ); ++ REQUIRE_FALSE( CursorShouldBeForwardedToHost( 2, true ) ); + REQUIRE( CursorShouldBeForwardedToHost( 1, false ) ); + REQUIRE( CursorShouldBeForwardedToHost( 0, false ) ); +} diff --git a/tools/gamescope/release.env b/tools/gamescope/release.env index d6d9b277a..552ee708f 100644 --- a/tools/gamescope/release.env +++ b/tools/gamescope/release.env @@ -1,3 +1,3 @@ GAMESCOPE_REPO=Droid-Deck/DroidDeck-Components -GAMESCOPE_TAG=gamescope-3.16.29-f3a45b31 -GAMESCOPE_SHA256=3908af87b2ee8a328e9780fc805c6a7bddd11d7405b9992d717b94e16c019313 +GAMESCOPE_TAG=gamescope-3.16.29-f7dd44d2 +GAMESCOPE_SHA256=a034c36d44f9bca4abc804bda3958c8d303f1ce304fb677375e5d7aa233287a9