Bug 503352

Summary: Snapping on a vertical monitor using meta + down working incorrectly
Product: [Plasma] kwin Reporter: Troy <troy0h>
Component: Quick TilingAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Window screenshotted as active window in Spectacle, note that width is now 1575, instead of expected 1440
Window screenshotted as a region in Spectacle, missing buttons in top right. Width is 1440
Window screenshotted as active window in Spectacle, note that width is aproximately 1530, instead of expected 1440

Description Troy 2025-04-25 17:06:02 UTC
Created attachment 180655 [details]
Window screenshotted as active window in Spectacle, note that width is now 1575, instead of expected 1440

SUMMARY
When I use meta + down arrow on Firefox, to snap my window to the bottom of my secondary, vertical monitor, it get snapped slightly off-screen, around 50 pixels to the right.
Monitor is 1440p vertical (1440 x 2560)
Only seems to happen with Firefox, and only when the window is not already snapped.
If the Firefox window is already snapped, I can use meta + left and then meta + right to fix the issue.
Only happens on bottom half of the screen, snapping to top is fine

STEPS TO REPRODUCE
1. Open Firefox with a vertical monitor
2. Snap using Meta + Down
3. Observe that the minimize / maximize / close buttons are now off screen

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux, 6.14.3-arch1-1 (64-bit), Wayland
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Comment 1 Troy 2025-04-25 17:06:59 UTC
Created attachment 180656 [details]
Window screenshotted as a region in Spectacle, missing buttons in top right. Width is 1440
Comment 2 Troy 2025-04-25 17:08:07 UTC
Created attachment 180657 [details]
Window screenshotted as active window in Spectacle, note that width is aproximately 1530, instead of expected 1440

Needed to crop the image