Bug 487498

Summary: Some Wayland clients retain a bigger window size than they should when unmaximizing
Product: [Plasma] kwin Reporter: Simone <simonecentonze0>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: This video compares the behaviour both on Plasma and Gnome

Description Simone 2024-05-24 21:18:32 UTC
SUMMARY
This happens with Blender (and also telegram-desktop under certain circumstances), under X11 and gnome-wayland when you minimize the just-opened window it minimizes to make space, while on plasma Wayland it does not. This might have to do with faulty clients (both Blender and Telegram use custom toolkits).

STEPS TO REPRODUCE
1. Open Blender on Wayland session
2. Drag the window down

OBSERVED RESULT
The windows remains of a bigger size

EXPECTED RESULT
The window should be smaller

SOFTWARE/OS VERSIONS
Distro: Arch Linux
KDE Plasma Version: 6.1 Beta
Comment 1 Simone 2024-05-24 21:19:28 UTC
Created attachment 169792 [details]
This video compares the behaviour both on Plasma and Gnome
Comment 2 Simone 2024-05-24 21:25:35 UTC
I might have not specified that when you resize after the opening of the window it DOES retain, while it doesn't when it was just opened.
Comment 3 Simone 2024-05-31 08:01:30 UTC
Interestingly, this also happens when creating a new user with plasma 6.1 vanilla configuration, except that it does not happen anymore only for blender, but with all Wayland apps.
Comment 4 Vlad Zahorodnii 2024-05-31 08:30:40 UTC
blender maps its window in the normal state with the size roughly the same as the screen size. Then, later, it asks the compositor to maximize it.

Since kwin knows the size of the blender window in normal state (because blender mapped its window in such state in the first frame), it will restore blender window to that size.

Please report this issue to blender developers.
Comment 5 Simone 2024-06-01 08:41:14 UTC
I'm sorry, i thought this was a Kwin bug because it behaves as expected on other compositors.
Comment 6 Simone 2024-07-16 05:26:42 UTC
Hello, it took me long to figure this out.
It's not KWin's fault but some clients do actually start with a too much large window and Mutter/X11 change their state to maximized and set a minimized size, to make it pleasant to use.
KWin on wayland doesn't do this yet.