You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue happens when pausing a game while the mouse cursor is inside the game window. It's like the mouse cursor gets paused too, and is stuck in that state (Proton games run in XWayland), so it stops working in other XWayland windows too.
This issue is apparently only present when running the script via a keybind.
For some reason running the same script in a terminal (by manually assigning the game process to the PID variable) works as intended and mouse input works correctly in other Xorg/XWayland windows.
Script I ran in terminal which works as intended:
PID=26043 #Manually assign pid of a game
PIDS=$(pstree $PID -npl | grep -oP '(?<=\()[0-9]+(?=\))')kill -STOP $PIDS
Pausing a game running in gamescope also works as intended.
EDIT
On further analysis it looks like this issue only happens when pausing a game while the mouse cursor is inside the game window.
If I add a sleep timer like this
if [[ "$(ps -o state= $PID)"== S ]];then
sleep 3 #timerkill -STOP $PIDSexit 0
fi
run the script from keybind, and quickly move the mouse cursor out of the game window, the game gets paused after 3 seconds and the mouse works correctly in other XWayland windows.
Not sure how to proceed right now as this should be fixed in a way that still allows pausing the game instantaneously.
The text was updated successfully, but these errors were encountered:
This issue happens when pausing a game while the mouse cursor is inside the game window. It's like the mouse cursor gets paused too, and is stuck in that state (Proton games run in XWayland), so it stops working in other XWayland windows too.
This issue is apparently only present when running the script via a keybind.
For some reason running the same script in a terminal (by manually assigning the game process to the PID variable) works as intended and mouse input works correctly in other Xorg/XWayland windows.
Script I ran in terminal which works as intended:
Pausing a game running in gamescope also works as intended.
EDIT
On further analysis it looks like this issue only happens when pausing a game while the mouse cursor is inside the game window.
If I add a sleep timer like this
run the script from keybind, and quickly move the mouse cursor out of the game window, the game gets paused after 3 seconds and the mouse works correctly in other XWayland windows.
Not sure how to proceed right now as this should be fixed in a way that still allows pausing the game instantaneously.
The text was updated successfully, but these errors were encountered: