Created attachment 116442 [details] Video demonstrating the issue. Disabling snapzones does not prevent window snapping behavior. STEPS TO REPRODUCE 1. Disable border/window/center snapzones in Window Behavior KCM on the "Move " tab. 2. Place window of any application at the center of the screen and move it towards the upper edge. OBSERVED RESULT Desktop attempts to snap window at about 1/4th of the distance from the top edge of the screen. Video attached. EXPECTED RESULT No snapping should happen. SOFTWARE/OS VERSIONS KDE Frameworks 5.52.0 Qt 5.11.2 (built against 5.11.2)
Just noticed that this happens only on 1440p (main) screen. Secondary 1080p screen does not produce this behavior.
Please provide the output of qdbus org.kde.KWin /KWin supportInformation
Created attachment 116450 [details] supportInformation
Created attachment 116451 [details] monitor config Just realized that this is related to monitor configuration. See image in what way monitors are configured. Window snaps at the position where edge of right monitor starts. If i move right monitor down - snapping position moves down as well.
Could it be that you have a panel on the top of the right screen?
I do.
Try to top align your screens or remove that panel. I'm sure it will resolve the problem. Explanation will follow if you verify that my theory is correct.
Both of suggested workarounds work indeed. It would still be nice to not have this behavior in my initial configuration. Monitors were aligned as they are in order to mimic their physical placement. 1080p monitor is an old thing whose height adjustment is implemented by a book on which it stands, so options of changing physical setup are quite limited. ;)
To explain: panels have a so-called strut area. For historic reasons they extend over all screens. What you experience is not the snapping but a short delay before you can move the window over a "panel". By top aligning the screens the panels got aligned as well, so you don't face the problem any more.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
This is still a problem.
*** Bug 449160 has been marked as a duplicate of this bug. ***
I think this might be addressed by https://invent.kde.org/plasma/kwin/-/merge_requests/5296
Git commit 76516a10c0230e0bc5d3fc65e3998425075a6cda by Yifan Zhu. Committed on 24/02/2025 at 17:36. Pushed by fanzhuyifan into branch 'master'. window: reimplement restriction in moveResize In restricted moveResize, try to guarantee at least a 100px contiguous block of the titlebar is visible. Previously this was implemented by shifting the geometry by 1px increments, trying to find a suitable position. This is inefficient and error-prone. Replace this with an efficient algorithm that finds the closest candidate position. Consolidate the restriction code and add tests. Related: bug 481610, bug 493797 M +396 -1 autotests/integration/move_resize_window_test.cpp M +3 -3 autotests/integration/x11_window_test.cpp A +- -- doc/moveresizerestriction/moveresizerestriction.pdf A +232 -0 doc/moveresizerestriction/moveresizerestriction.tex M +266 -172 src/window.cpp M +1 -1 src/window.h https://invent.kde.org/plasma/kwin/-/commit/76516a10c0230e0bc5d3fc65e3998425075a6cda
Git commit cb0e06d2900add3387e235a62f94cbfb914d0deb by Vlad Zahorodnii, on behalf of Yifan Zhu. Committed on 06/03/2025 at 22:09. Pushed by vladz into branch 'Plasma/6.3'. window: reimplement restriction in moveResize In restricted moveResize, try to guarantee at least a 100px contiguous block of the titlebar is visible. Previously this was implemented by shifting the geometry by 1px increments, trying to find a suitable position. This is inefficient and error-prone. Replace this with an efficient algorithm that finds the closest candidate position. Consolidate the restriction code and add tests. Related: bug 481610, bug 493797 (cherry picked from commit 76516a10c0230e0bc5d3fc65e3998425075a6cda) M +396 -1 autotests/integration/move_resize_window_test.cpp M +3 -3 autotests/integration/x11_window_test.cpp A +- -- doc/moveresizerestriction/moveresizerestriction.pdf A +232 -0 doc/moveresizerestriction/moveresizerestriction.tex M +266 -172 src/window.cpp M +1 -1 src/window.h https://invent.kde.org/plasma/kwin/-/commit/cb0e06d2900add3387e235a62f94cbfb914d0deb