Bug 457601 - Top left of windows positioned under cursor when dragged from maximized state
Summary: Top left of windows positioned under cursor when dragged from maximized state
Status: RESOLVED DUPLICATE of bug 449105
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-07 20:25 UTC by ghoste
Modified: 2022-08-08 17:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ghoste 2022-08-07 20:25:14 UTC
SUMMARY
When a window opens already maximized and you attempt to drag the window out of that state, the top left of the window will be positioned under the cursor instead of where you initially clicked and dragged from on the title bar. The cursor's position is correct, but the window itself is moved to the position stated above. It affects Qt and GTK apps, but outside that I'm not sure (Discord and Spotify aren't affected for example).

STEPS TO REPRODUCE
1. Start an application/Open a window in a maximized state
2. Click and drag the window from anywhere on the title bar until it exits maximized

OBSERVED RESULT
Top left of window ends up positioned under the cursor regardless of where on the title bar you clicked and dragged from.

EXPECTED RESULT
Replicates the behavior consistently seen in X11, where the window "restores" relative to where you dragged the title bar from.

SOFTWARE/OS VERSIONS
Linux: Up-to-date Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
I tested various scenarios to see what makes it behave correctly again and what doesn't. Here's what I found: 
- drag from and back to maximized without letting go: BROKEN
- drag from maximized and let go, double click the title bar back to maximized: BROKEN
- drag from maximized and let go, drag the window to the top to maximize again: FIXED
- drag from maximized and let go, resize window, double click title bar or drag window to the top to maximize again: FIXED
- double click the title bar into windowed, double click the title bar again back into maximized: FIXED
Comment 1 Nate Graham 2022-08-08 17:40:44 UTC

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