Bug 487498 - Some Wayland clients retain a bigger window size than they should when unmaximizing
Summary: Some Wayland clients retain a bigger window size than they should when unmaxi...
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git-stable-Plasma/6.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-24 21:18 UTC by Simone
Modified: 2024-07-16 05:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
This video compares the behaviour both on Plasma and Gnome (2.23 MB, video/webm)
2024-05-24 21:19 UTC, Simone
Details

Note You need to log in before you can comment on or make changes to this bug.
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.