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

Tom <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Tom <[email protected]> ---
(In reply to Antti Savolainen from comment #9)
> Is this still an issue? There was an off-by-one fix recently.

Yes, this is still present with the newly released FreeRDP 3.31.1 source.

System:
- CachyOS rolling, Linux 7.2.0-1-cachyos
- Native Wayland session
- Plasma/KWin/KScreen 6.7.4
- Qt 6.11.2
- SDL 3.4.14
- FreeRDP 3.31.1, tag 63b948ca5
- AMD Ryzen 7 9800X3D
- NVIDIA GeForce RTX 5090, driver 610.57.04

Display configuration:
- AOC U28G2G6B: 3840x2160 @ 60 Hz, 165%, landscape
- Dell AW3225QF: 3840x2160 @ 240 Hz, 145%, landscape and KDE primary
- Gigabyte AORUS FO32U2: 3840x2160 @ 240 Hz, 145%, rotated 270 degrees

The displays appear edge-to-edge in KScreen. However, a native SDL3 diagnostic
using SDL_GetDisplays() and SDL_GetDisplayBounds() reports:

    primary=3 count=3
    id=3 primary=1 name=Dell Inc. AW3225QF bounds=2328,503 2648x1490
    id=4 primary=0 name=AOC U28G2G6B bounds=0,591 2327x1309
    id=5 primary=0 name=GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO32U2
bounds=4977,0 1490x2648

This leaves a one-logical-pixel gap between each display:

- AOC: x=0, width=2327; Dell begins at x=2328
- Dell: x=2328, width=2648; Gigabyte begins at x=4977

This affects FreeRDP when selecting the two landscape displays with:

    /multimon /monitors:4,3 /f /scale:180

The FreeRDP 3.31.1 SDL3 monitor-topology code is unchanged in this area and
still requires exact edge equality before treating displays as neighbours:

    a.x + a.w == b.x
    b.x + b.w == a.x

Therefore the 2327/2328 discrepancy prevents the monitors from being recognised
as neighbours. Their calculated RDP layouts retain the same 0,0 origin and are
rejected as overlapping or containing gaps.

Related FreeRDP testing and discussion:

https://github.com/FreeRDP/FreeRDP/pull/12598#issuecomment-5367017850

I verified this against the released 3.31.1 source. A packaged 3.31.1 binary is
not yet available on this CachyOS installation, so the FreeRDP conclusion is
currently based on direct source comparison, while the one-pixel SDL geometry
above was reproduced live.

Could you point me to the recent KDE off-by-one fix or its commit/MR? I can
confirm whether Plasma 6.7.4 contains it and retest directly.

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

Reply via email to