Bug 460990

Summary: Configuration window is too small by default
Product: [Plasma] kwin Reporter: Mend <thedjknownasez>
Component: effects-present-windowsAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: isma.af, nate, nicolas.fella
Priority: NOR Keywords: usability
Version First Reported In: master   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mend 2022-10-25 16:24:26 UTC
KWIN does not recognize the contents of a dialogue box. So it makes the size way too small and I always have to resize in order to change the options. These should be content aware and resize accordingly, or at least set to a default size depending on the box, which it seems neither are the case. Most notibly(for me) if you open shortcut menus like under desktop effects 'present windows'. This happens a few other places, but this is somewhere I always go to change shortcuts so I know this one,  no matter what distro I am installing it always opens in a size that doesn't make sense that is too small and I have to manually expand the window in order to change my hotkeys.

STEPS TO REPRODUCE
1. Open settings
2. Go to desktop effects, then present windows options
3. Window is too small for the contents

OBSERVED RESULT
Window is too small

EXPECTED RESULT
Window knows what's inside of it or know that this window should be a larger size and manifests accordingly

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS latest
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Comment 1 Nicolas Fella 2022-10-31 12:56:50 UTC
Generally speaking it's not KWin's job to choose a good size for a window. It can't do anything based on the window content since it has no idea what's inside a window. It's the application's job to request a suitable window size