https://bugs.kde.org/show_bug.cgi?id=527370

            Bug ID: 527370
           Summary: Wayland: pointer clicks land offset from cursor on
                    rotated output (multi-monitor), native Wayland apps
                    only
    Classification: Plasma
           Product: kwin
      Version First 6.8.0
       Reported In:
          Platform: EndeavourOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: input
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

On a two-monitor setup where one output is rotated, clicks in native Wayland
clients land at the wrong position: roughly 4 characters to the left of the
pointer, and sometimes one line above. The same apps forced through XWayland
(Firefox with MOZ_ENABLE_WAYLAND=0, VS Code with --ozone-platform=x11, kitty
with linux_display_server x11) behave correctly on the same output.

This also affects KDE's own Qt apps and plasmashell (panel, menus, Dolphin,
Kate), so it does not look like an application-side rotation bug (cf. bug
504613, closed as RESOLVED UPSTREAM).

STEPS TO REPRODUCE
1. Two outputs: DP-1 1920x1080 at 0,585 (not rotated); HDMI-A-1 1080x1920 at
   1920,0 (rotated 270°, kscreen-doctor Rotation: 8).
2. Log into Plasma Wayland.
3. On HDMI-A-1, click inside a text field in Kate or Dolphin, or on the Plasma
panel.

OBSERVED RESULT
Click/caret lands ~4 characters to the left of the pointer, sometimes one line
above.

EXPECTED RESULT
Click lands exactly under the pointer.

ADDITIONAL INFORMATION
- KWIN_FORCE_SW_CURSOR=1 does NOT change the behavior (so not a hardware cursor
plane issue).
- Present since at least 6.7.4; still present in 6.8.0. On 6.7.x the X11
session
  was a workaround, which is no longer available in 6.8.

  was a workaround, which is no longer available in 6.8.

SOFTWARE/OS VERSIONS
Linux: EndeavourOS (Arch), kernel 7.2.11-arch1-1
KDE Plasma: 6.8.0 (kwin 6.8.0-1)
Qt: 6.12.0
Xwayland: 24.1.14
Graphics: NVIDIA RTX 3050 (GA106), nvidia-open 615.78.08

ADDITIONAL INFORMATION:
- Not a duplicate of 443452: both outputs use scale 1 (no mixed scaling)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to