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

--- Comment #16 from Tom <[email protected]> ---
Follow-up to comment 10, tested on 2026-11-20: the XWayland one-pixel gaps are
still present with Plasma/KWin/KScreen 6.8.3 on CachyOS.

This test used the X11 FreeRDP client under Wayland/XWayland, not a new test of
the native SDL path from my earlier comment.

Configuration:
- Left: AOC U28G2G6B, landscape, 165%
- Centre/primary: Dell AW3225QF, landscape, 145%
- Right: AORUS FO32U2, portrait, 145%

The logical KScreen geometry has touching horizontal edges:
  left:    2328x1310 +0+591
  primary: 2649x1490 +2328+503
  right:   1490x2649 +4977+0

FreeRDP's X11 monitor listing reports:
  left:    3840x2160 +0+975
  primary: 4370x2458 +3841+830
  right:   2458x4370 +8212+0

Thus 0 + 3840 leaves a one-pixel gap before 3841, and 3841 + 4370 leaves
another before 8212. With the unmodified WBFreeRDP PR #1 build at
b88e376974cc852f2e500c28bbb22243e219bbfe, /multimon is rejected before
connecting: "Monitor configuration has gaps! Monitor 0 does not have any
neighbor".

For this particular layout, a local client-side workaround preserves all
monitor widths/heights and Y positions and changes only the reported X origins:
  left:    0 -> 1
  primary: 3841 -> 3841
  right:   8212 -> 8211

Together with that fork's separate RemoteApp coordinate fixes, this allowed
rendering, dragging between screens, clicking and typing across all three
monitors. No KDE output configuration was changed. The workaround only closes
one-pixel gaps beside the primary and refuses moves that would overlap another
monitor; this does not demonstrate a general compositor-side solution.

A useful pitfall: our initial workaround extended the left and primary widths
by one pixel instead, making them 3841 and 4371. That introduced approximately
45-degree image skew (about one pixel per row), also visible in a decoded
surface dump. Keeping the original even widths and shifting origins removed it.
The RDP display-control specification requires even widths:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpedisp/ea2de591-9203-42cd-9908-be7a55237d1c

We have not traced the precise server-side cause. The skew was introduced by
our workaround, not a new standalone KDE regression.

Full client test details:
https://github.com/winboat-org/WBFreeRDP/pull/1#issuecomment-7040886253
Related coordinate-space follow-up:
https://github.com/FreeRDP/FreeRDP/pull/12598#issuecomment-7040895019

These are short interactive results for this layout; other arrangements and
long-running sessions have not been validated.

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

Reply via email to