Bug 449160 - Wrong sticky window behavior when moving in multi-monitor setup on Wayland
Summary: Wrong sticky window behavior when moving in multi-monitor setup on Wayland
Status: RESOLVED DUPLICATE of bug 401271
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: git master
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-25 15:56 UTC by Aleksey Zagorodnikov
Modified: 2023-02-02 18:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video demonstration (1.91 MB, video/x-matroska)
2022-01-25 15:56 UTC, Aleksey Zagorodnikov
Details
arrangement of monitors (11.52 KB, image/png)
2022-01-25 15:58 UTC, Aleksey Zagorodnikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Zagorodnikov 2022-01-25 15:56:17 UTC
Created attachment 145924 [details]
video demonstration

SUMMARY
My main monitor with 1440 vertical resolution and second monitor with 1024 on vertical. Second monitor placed in right-hand of primary monitor and centered on vertical. So second monitor has position +2560+208.
On second monitor there is a plasma panel on top.
When I move window on primary monitor by vertical axis from bottom to top it sticks/snap/hangs around +208+24 position and can move further only after mouse pass +208 position.

Despite some weird recording artifacts I show it on this video https://youtu.be/SZSH1JiTtFg

STEPS TO REPRODUCE
1. Setup second monitor on side of primary and offset it by vertical.
2. Place plasma panel on top of second monitor
3. Drag window on main monitor from bottom to top

OBSERVED RESULT
Window snaps at some point on main monitor, right when pass height where placed panel on second monitor.
It also snaps when moved from top to bottom.

EXPECTED RESULT
Window should be moved smoothly from bottom to top and top to bottom on this monitor.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.2-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × Genuine Intel® CPU 0000 @ 3.20GHz
Memory: 31,0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Comment 1 Aleksey Zagorodnikov 2022-01-25 15:58:30 UTC
Created attachment 145925 [details]
arrangement of monitors
Comment 2 Vlad Zahorodnii 2022-01-25 16:04:44 UTC
Can you reproduce the bug when using unrestricted move, i.e. Meta+left click?
Comment 3 Aleksey Zagorodnikov 2022-01-25 16:17:12 UTC
Nope, only reproduces when grab title.

And found that this bug can be reproduced only if window title was below the threshold. If title initially above threshold it can moved smoothly.
Comment 4 Vlad Zahorodnii 2022-01-25 16:21:03 UTC
https://invent.kde.org/plasma/kwin/-/blob/e1d47b59463eb8c842c27c9de3a4b9dfd840f4ec/src/abstract_client.cpp#L1367

the constraining algorithm handles poorly the screen area being split in smaller rects
Comment 5 Bug Janitor Service 2022-01-27 16:16:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1948
Comment 6 Vlad Zahorodnii 2023-02-02 18:30:54 UTC

*** This bug has been marked as a duplicate of bug 401271 ***