Bug 445725

Summary: Improper System Settings window state button positioning when snapped to screen area
Product: [Plasma] kwin Reporter: PhilipB <filipebaltazar1>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.23.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: system settings window state buttons improper positioning

Description PhilipB 2021-11-18 23:52:46 UTC
Created attachment 143714 [details]
system settings window state buttons improper positioning

System Settings Window titlebar state button elements don't follow the resizing upon snapping to right side of the screen.

STEPS TO REPRODUCE
1. Be on Wayland session;
2. Open System Settings;
3. Snap the window to right side screen corner;

OBSERVED RESULT
Window state buttons cut off/improperly positioned in the titlebar

EXPECTED RESULT
Window state buttons follow proper window resizing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Only happening to system settings window as far as has been observed. Only snapping event creates bug.
Comment 1 Nate Graham 2021-11-18 23:56:08 UTC
Can confirm, Wayland only. What seems to be happening is that KWin is positioning part of the window out of view to honor the user's tiling preference, instead of scaling down the window below its minimum size, as it does on X11.

Scaling below the window's minimum size as the *potential* to beak the window, but positioning is partly off screen guarantees it, so I think this behavior is a regression compares to what it does on X11.
Comment 2 Vlad Zahorodnii 2024-06-12 09:09:51 UTC
The minimum size has been removed in Qt 6
Comment 3 Vlad Zahorodnii 2024-06-12 09:10:00 UTC
The minimum size check*