Bug 478886 - KDE Plasma Wayland Issue: Mouse Cursor Snaps to Corner and Window Misaligns When Exiting Maximized State, Leading to Erratic Resizing
Summary: KDE Plasma Wayland Issue: Mouse Cursor Snaps to Corner and Window Misaligns W...
Status: RESOLVED DUPLICATE of bug 449105
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.27.10
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-22 13:44 UTC by Zack Melan
Modified: 2023-12-27 19:43 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 Zack Melan 2023-12-22 13:44:05 UTC
SUMMARY
***
When using KDE Plasma on Wayland, certain applications that were last closed in fullscreen mode exhibit unusual behavior upon attempting to exit fullscreen. Specifically:

1. Launching these applications (like Firefox) in fullscreen mode, followed by an attempt to exit fullscreen by dragging the top bar, results in the mouse cursor snapping to the top-left corner of the application window.
2. The application window then shifts to the right relative to the mouse's position.
3. Any subsequent attempts to resize the window cause it to collapse to its minimum configured size.
***


STEPS TO REPRODUCE

1. Launch an application known to exhibit this behavior, such as Firefox.
2. Set the application to fullscreen mode.
3. Close the application while it's still in fullscreen mode.
4. Reopen the same application. It should launch in fullscreen mode, retaining its last state.
5. Try to exit fullscreen mode by dragging the top bar of the application window.
6. Notice if the mouse cursor snaps to the top-left corner of the application window.
7. Observe whether the application window shifts to the right, starting from this top-left corner, and does not align with the mouse's position.
8. Try to resize the application window.
9. Check if the window collapses to its minimum size.

OBSERVED RESULT

The mouse cursor unexpectedly snaps to the top-left corner of the application window when attempting to exit fullscreen by dragging the top bar.
The application window shifts to the right relative to the mouse's position, starting from the snapped top-left corner.
Any attempts to resize the application window result in it collapsing to its minimum configured size, instead of resizing as expected.

EXPECTED RESULT

When exiting fullscreen mode by dragging the top bar of an application window, the transition should be smooth. The mouse cursor should remain in the position where the drag action was initiated, without snapping to any corner of the window.
The application window should move in sync with the mouse cursor during the drag action. There should be no unexpected shift or displacement of the window in relation to the cursor's position.
Resizing the window after exiting fullscreen should be fluid and responsive. The window size should adjust according to the drag action used for resizing, without collapsing to the minimum size unless explicitly resized to that extent.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux 6.6.7-273-tkg-linux-tkg-eevdf
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Comment 1 Zamundaaa 2023-12-22 18:11:45 UTC
Do you mean maximized, instead of fullscreen? Windows that are fullscreen don't have a title bar
Comment 2 Zack Melan 2023-12-22 21:01:03 UTC
(In reply to Zamundaaa from comment #1)
> Do you mean maximized, instead of fullscreen? Windows that are fullscreen
> don't have a title bar

Yes, I meant this sorry.
Comment 3 Zack Melan 2023-12-23 03:15:37 UTC
Please check the video here! https://streamable.com/hdip2k
Comment 4 Zack Melan 2023-12-25 11:28:45 UTC
i uploaded the video again here: https://streamable.com/40xtfr
Comment 5 Zamundaaa 2023-12-25 21:35:40 UTC
Thanks, that makes it clear what you mean

*** This bug has been marked as a duplicate of bug 449105 ***
Comment 6 Zack Melan 2023-12-26 10:23:14 UTC
(In reply to Zamundaaa from comment #5)
> Thanks, that makes it clear what you mean
> 
> *** This bug has been marked as a duplicate of bug 449105 ***

Could take a look at the video here: https://streamable.com/40xtfr  
My issue is two parts, one part is indeed duplicate of the bug you mentioned,
but the other part is not mentioned anywhere, which is when the dragged window that already suffered the snapped cursor is then resized
it proceeds to collapse to its minimum size, which in some programs is 1x1 pixels!
Comment 7 Zack Melan 2023-12-27 08:07:58 UTC
Here is the video uploaded again: https://streamable.com/xdpamp
the link is only available for 2 days, please watch it since i find this bug to be the most annoying on KDE Plasma and i want all details about it to be reported.
Comment 8 Zamundaaa 2023-12-27 19:43:22 UTC
The resizing problem is caused by the same bug as the other issue. Both should be fixed by the MR for bug 449105

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