Bug 480585

Summary: Wrong window position when un-maximizing it.
Product: [Plasma] kwin Reporter: Lucy Q. User <qbax6nk4vfbz>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns
Priority: NOR Keywords: qt6
Version: 5.92.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lucy Q. User 2024-01-31 07:59:51 UTC
SUMMARY
Unmaximizing a window that has never been unmaximized before by dragging the window bar results in the cursor grabbing the top left corner.

STEPS TO REPRODUCE
1. Start a window in a maximized state, it must have never been unmaximized before.
2. Grab the window bar roughly in the middle of it, and drag it down to perform the unmaximize gesture.

OBSERVED RESULT
The window unmaximizes, but changes it's location in such a way that the cursor is now grabbing the top left corner.

EXPECTED RESULT
The window unmaximizes, and keeps it's location in such a way that the cursor is grabbing a position corresponding to the one in maximized window.

ADDITIONAL OBSERVATION:
Maximizing this window again and performing the unmaximize gesture again results in the cursor grabbing the intended position, this bug can only be reproduced once per window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40 (download image is Fedora-KDE-Live-aarch64-Rawhide-20240117.n.0.iso)
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Host architecture: aarch64
Virtual machine: qemu-7.2
Comment 1 Patrick Silva 2024-01-31 09:23:27 UTC

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