** Description changed:

- The following description comes from this GNOME bug report:
- https://gitlab.gnome.org/GNOME/mutter/-/work_items/4686
+ [ Impact ]
  
- ```
- The set_cursor_position_hint method from the pointer constraints protocol 
takes local coordinates to hint the compositor where to place the cursor. With 
recent mutter and fractional scaling, Xwayland runs in its own coordinate 
space. As a result, an X11 application trying to warp the pointer may cause a 
drift in the location of the pointer.
- ```
+ With fractional scaling, an X11 application running in Xwayland that
+ warps the pointer (for example KiCad) causes the cursor to drift, because
+ the pointer-constraints position hint is in Xwayland coordinates and is
+ not scaled to the compositor's coordinate space.
+ 
+ The fix applies the Xwayland buffer scale to the position hint before
+ using it.
+ 
+ [ Test Plan ]
+ 
+ 1. On Ubuntu 26.04 with GNOME on Wayland and fractional scaling enabled,
+    run an Xwayland application that warps the pointer (e.g. KiCad).
+ 2. Use the feature that warps the pointer and verify the cursor lands at
+    the intended location.
+ 3. Repeat at several scale factors and with multiple monitors.
+ 4. Regression check: pointer locking and confinement still work in both
+    Xwayland and native Wayland clients.
+ 
+ [ Where problems could occur ]
+ 
+ The change is in the Wayland pointer-constraints implementation. A
+ regression could show up as an offset cursor, broken pointer locks, or
+ constraints not being applied. Test pointer locking, confinement, and
+ warping under Xwayland and native Wayland.
+ 
+ [ Other info ]
  
  The bug was fixed in this commit:
  
https://gitlab.gnome.org/GNOME/mutter/-/commit/c7642cd79c6efecadd4495e03c02b166d380e39f
  
  The bug notably affects KiCad, documented here:
  https://gitlab.com/kicad/code/kicad/-/work_items/22965
- 
- This commit is present in mutter 50.2. Ubuntu 26.04 ships 50.1. Please
- backport this commit to the Ubuntu 26.04 mutter package.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172799

Title:
  xwayland scaling factor confuses pointer hints location

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2172799/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to