Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mutter mutter
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,105
    • Issues 1,105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 120
    • Merge requests 120
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • muttermutter
  • Issues
  • #2110
Closed
Open
Issue created Jan 20, 2022 by Ethan Lee@flibitijibibo

Wayland: Pointer constraint rectangle is incorrect for high-DPI windows

Affected version

  • Mutter 41.3-1.fc35.x86_64
  • Kernel 5.15.14-200.fc35.x86_64
  • Both Mesa 21.3.4 and NVIDIA 495.46

Bug summary

When a Wayland fullscreen window has a high-DPI drawable surface, pointer confinement rectangles are smaller than they should be. For example, SDL_SetWindowMouseRect, which calls zwp_pointer_constraints_v1_confine_pointer, may set a rectangle of (60,0,1800,1080) on a window that is 1920x1080, and gnome-shell will confine the pointer to (roughly) the top left quadrant.

Steps to reproduce

This can be reproduced with the latest Git revision of ScummVM. On Fedora with a high-DPI display...

  1. dnf builddep scummvm
  2. git clone https://github.com/scummvm/scummvm
  3. cd scummvm; ./configure; make
  4. SDL_VIDEODRIVER=wayland ./scummvm
  5. Alt+Enter to toggle fullscreen

What happened

The mouse pointer is locked to the top left quadrant of the screen

What did you expect to happen

The mouse pointer should be confined to the drawn area of ScummVM's UI - the left/right pillarboxes should be inaccessible.

Relevant logs, screenshots, screencasts etc.

WAYLAND_DEBUG=1 log

The original SDL report

Assignee
Assign to
Time tracking