Bug 502956

Summary: Move to center incorrectly interacts with spatial tiling
Product: [Plasma] kwin Reporter: Coacher <itumaykin+kde>
Component: Quick TilingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, vlad.zahorodnii
Priority: NOR Keywords: regression
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:

Description Coacher 2025-04-18 04:38:06 UTC
SUMMARY
After quick tiling a window and moving it to center, the window remembers, how it was tiled.


STEPS TO REPRODUCE
1. Quick tile a window to the top left corner via hotkey
2. Move the window to the center via hotkey
3. Try to quick tile the window to the top left corner again

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
The window is quick tiled to the top left corner

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.13.11-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Xe Graphics

ADDITIONAL INFORMATION
If I do 1 and 2, but instead of 3 I do quick tile to the right, the window is expanded at the top of the screen. Which is also an error.
Comment 1 Nate Graham 2025-04-18 17:48:45 UTC
Can reproduce.
Comment 2 Bug Janitor Service 2025-04-21 15:30:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7543
Comment 3 Vlad Zahorodnii 2025-05-05 13:13:30 UTC
Git commit 162011fc89ff4740c47f4d487c32f3d2974c5245 by Vlad Zahorodnii.
Committed on 05/05/2025 at 12:22.
Pushed by vladz into branch 'master'.

Make Placement::packTo() evacuate window from tiled state

M  +6    -0    src/placement.cpp

https://invent.kde.org/plasma/kwin/-/commit/162011fc89ff4740c47f4d487c32f3d2974c5245