Bug 505787

Summary: Quick tile gets sizes wrong
Product: [Plasma] kwin Reporter: Natalie Clarius <natalie_clarius>
Component: Quick TilingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: akselmo, chgonzalezg, nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: 6.4.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Natalie Clarius 2025-06-19 15:49:21 UTC
SUMMARY
Quick-tile geometry sizes have become inaccurate; vertically half-tiled windows are actually higher than half the available height.

STEPS TO REPRODUCE
1. Have a window taking up the top quarter of the screen
2. Quick-tile it to the bottom using meta+arrow key shortcut

OBSERVED RESULT
Window occupies bottom half + some more vertical space towards the top of the screen.

EXPECTED RESULT
Window occupies exactly bottom half of the screen.

ADDITIONAL INFORMATION
What makes this an annoyance is that such windows will then overlap other quick-tiled windows, so it's not just a cosmetic problem of not being pixel-perfect.

In my case the window starts 18 px too high. I have a 36px panel on the top. So I suspect that the quick tiling fails to take panels into account to deduct from the usable area?
Comment 1 Natalie Clarius 2025-06-19 15:52:13 UTC
Note that this happens also when there is another exactly half-height window on the other (in my example top) half of the screen so that the re-tiled window will produce an overlap; so what I'm describing is not the intentional behavior where it will deviate from the exact half to align with other windows on the opposite side.
Comment 2 Nate Graham 2025-06-19 20:36:37 UTC
Sounds like the panel height calculation is wrong indeed.
Comment 3 Akseli Lahtinen 2025-09-24 09:10:39 UTC
Either I'm doing something wrong or I can't repro this (or maybe it's been fixed!). For me it only overlaps 1 pixel, which is the window outline.

Can you tell more about your panel setup and see if this still happens?

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 ร— AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 4 Bug Janitor Service 2025-10-09 03:46:57 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2025-10-24 03:47:27 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.