fix(gamescope): taps reach dialogs and windows away from the screen origin (#2280)

This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-08 10:44:00 -05:00
1 parent 74c0f2127a
commit 2e70b8ed73
2 files changed
+38 -16

No files matched your search

+6
View File
@@ -327,6 +327,12 @@ each frame's motion to the X pointer itself until the game stops warping. Absolu
motion, as a real compositor does, so XInput2 raw motion reaches games that read only that. A touch moves the
pointer without relative motion, so tapping the screen does not turn the camera.
The X pointer is read in root coordinates and the seat position is local to the focused window, so the X pointer
is moved into the focused window's coordinates before the two are compared. Without that, any window not at the
root origin (a dialog, or a windowed program) looked like a game warping the pointer, following started, and the
pointer was pinned to the window's corner. A touch always lands where the finger is and ends following, so taps
work in every window.
## 0132 sdl, steamcompmgr: follow a game's window mode
With `--follow-game-window-mode`, the outer window of a nested SDL gamescope follows the focused game window. A window
asking for `_NET_WM_STATE_FULLSCREEN`, or a Steam game covering the X screen without minimise or maximise functions or