Bug 475871 - [Wayland] Window resized incorrectly when initialised as maximised
Summary: [Wayland] Window resized incorrectly when initialised as maximised
Status: RESOLVED DUPLICATE of bug 449105
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-20 10:26 UTC by Sollace
Modified: 2024-04-26 17:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Demostrating the described bug (1.37 MB, video/mp4)
2023-10-20 10:26 UTC, Sollace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sollace 2023-10-20 10:26:35 UTC
Created attachment 162447 [details]
Demostrating the described bug

SUMMARY

Currently on Wayland if you open a new window in maximised (i.e. if the program had its window maximised when you closed it last, and you reopen it) and then restore the window by repositioning it, attempting to resize it after doing so will cause the window geometry to jump to the top-left of the display.

My assessment (given after reviewing footage, I notice the bug coincides with the drag point of the window also jumping to the top-left) is that the cursor position for windows spawned in this manner is not being initialised when it gains focus.

STEPS TO REPRODUCE
1. Open a new dolphin instance (default META+E)
2. Click "maximise" to maximise it (if not already)
3. Click "close"
4. Repeat step 1
5. Unmaximise the window by dragging it by the title bar to the middle of the screen
6. Attempt to resize the window by clicking on its top-left corner and dragging down and to the right

OBSERVED RESULT

The window jumps to the top-left of the screen and is given its minimum dimensions.

EXPECTED RESULT

Only the top and left edges of the window should move, and should move down and to the right proportional to the cursor's movement.

SOFTWARE/OS VERSIONS
Windows: No
macOS: No
Linux/KDE Plasma: Yes
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION

Operating System: Manjaro Linux 

Kernel Version: 6.1.55-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-10-20 16:47:42 UTC

*** This bug has been marked as a duplicate of bug 449105 ***
Comment 2 William Chambers 2024-04-17 03:29:48 UTC
I am running KDE with kwin 6.1 on Arch and am experiencing this exact problem. I originally thought it was an issue with Godot, but Konsole and Firefox have exhibited the same behavior.

Example Video: https://youtu.be/Xr5cmBRonls

Honestly have no idea how I could help debug this as it is super strange, but am happy to help however I can.
Comment 3 Nate Graham 2024-04-26 17:18:10 UTC

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