Skip to content

fix(xwayland): improve pointer behavior for fullscreen games#810

Closed
EduardoRodaRoca wants to merge 1 commit intomangowm:mainfrom
EduardoRodaRoca:fix/xwayland-fullscreen
Closed

fix(xwayland): improve pointer behavior for fullscreen games#810
EduardoRodaRoca wants to merge 1 commit intomangowm:mainfrom
EduardoRodaRoca:fix/xwayland-fullscreen

Conversation

@EduardoRodaRoca
Copy link

@EduardoRodaRoca EduardoRodaRoca commented Mar 26, 2026

Description
This PR improves fullscreen behavior for Xwayland games on scaled outputs.
It adjusts pointer coordinates using the output scale before sending pointer enter and motion events to X11 clients.

Why
On HiDPI or fractional scaling, some fullscreen Xwayland games can receive incorrect mouse coordinates, which may cause offset or inconsistent cursor behavior.

Scope

  • Applies only to Xwayland clients
  • No change for native Wayland clients
  • No effect when scale is 1.0

Mostly band-aid, as for some reason some games are not being treated as scale 1.0 even when in togglefullscreen, but this does fix some weird mouse behaviour with those games

Tested:

Marvel Rivals Launcher: Fixes mouse coordinates

Where Winds Meet launcher: Fixes Mouse coordinates

Deadlock: Fixes mouse coordinates in general for Menus

Fixes #807

@EduardoRodaRoca EduardoRodaRoca changed the title fix(xwayland): improve fullscreen behavior for games fix(xwayland): improve pointer behavior for fullscreen games Mar 26, 2026
@DreamMaoMao
Copy link
Collaborator

fix in

f94ddc6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problems with fullscreen games

2 participants