Bug 480871 - Windows can inappropriately be resized to below their minimum sizes
Summary: Windows can inappropriately be resized to below their minimum sizes
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.93.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-04 21:10 UTC by Tammes Burghard
Modified: 2024-02-08 17:30 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen showing the weird overlapping (234.86 KB, image/png)
2024-02-04 21:10 UTC, Tammes Burghard
Details
Me making the window narrow (1.17 MB, video/webm)
2024-02-05 22:23 UTC, Tammes Burghard
Details
Discovers UI also can be made too narrow (47.51 KB, image/png)
2024-02-05 22:31 UTC, Tammes Burghard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tammes Burghard 2024-02-04 21:10:13 UTC
Created attachment 165548 [details]
Screen showing the weird overlapping

SUMMARY
***
When making the window too narrow, its components overlap in a weird way
***


STEPS TO REPRODUCE
1. Open systemsettings
2. unmaximize the window
3. resize it to be as narrow as in my screenshot

OBSERVED RESULT
content page goes over the side bar, but buttons below the content page go behind

EXPECTED RESULT
either the content page disappears or the sidebar closes itself below a minimum width.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Kernel Version: 6.7.3-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFRMATION
I tested this with both 100% and 150% scaling
Comment 1 Doug 2024-02-05 04:00:36 UTC
Cannot reproduce.

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: AMD Radeon Pro WX 3200 Series
Manufacturer: Dell Inc.
Product Name: Precision 7540
Comment 2 Axel 2024-02-05 18:03:02 UTC
Cannot reproduce either. The window seems to have a minimum resize range than makes it impossible to reach that narrow level. Is it still happening on your side? Otherwise change the bug status. 

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9400T CPU @ 1.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP Pavilion All-in-One 24-xa0xxx
Comment 3 Nate Graham 2024-02-05 20:58:02 UTC
Indeed, how are you making the window this narrow? That's supposed to be impossible on Wayland, where minimum window sizes are law.
Comment 4 Tammes Burghard 2024-02-05 22:23:36 UTC
Created attachment 165582 [details]
Me making the window narrow
Comment 5 Tammes Burghard 2024-02-05 22:23:47 UTC
Ummm, I just grabbed the right border and moved it.
I can reproduce this both on my laptop and on my tablet and on the latter both with the mouse and with touch.
Comment 6 Tammes Burghard 2024-02-05 22:31:07 UTC
Created attachment 165583 [details]
Discovers UI also can be made too narrow
Comment 7 Tammes Burghard 2024-02-05 22:34:28 UTC
And when made too narrow, Discovers UI becomes unresponsive, see https://kuchenmampfer.de/kde_bug_480871.webm
Comment 8 Axel 2024-02-06 00:24:06 UTC
(In reply to Tammes Burghard from comment #7)
> And when made too narrow, Discovers UI becomes unresponsive, see
> https://kuchenmampfer.de/kde_bug_480871.webm

Have you done any modifications or added any specific plugins/themes? Could be QT version related since it doesnt happen on previous versions.
Comment 9 Tammes Burghard 2024-02-06 10:40:28 UTC
On the system I recorded this on, I do indeed use a material-you-dark color scheme and aritim-dark window decorations. But I can also reproduce this on my tablet, where I just use normal breeze dark. I did customize things a little bit there as well, but nothing that I can imagine affects this. Only things like keyboard shortcuts, enabling workspace switching OSD, etc.
Comment 10 Akseli Lahtinen 2024-02-06 14:13:05 UTC
Interesting, I can't reproduce this on Plasma 6 wayland since the window just wont allow itself to be resized any smaller.

One thing that might allow this (although did not work for me) is when  you right click window titlebar -> configure special window settings -> theres a setting called "obey geometry restrictions" and you can set it disabled.
Comment 11 Nate Graham 2024-02-06 19:37:32 UTC
Indeed, with standard settings I also cannot resize the windows to be that small as KWin will prevent it. ...Unless you have a window rule overriding that as Akseli has suggested. So I'd recommend checking what the Window Rules page in System Settings has.
Comment 12 Tammes Burghard 2024-02-06 22:38:13 UTC
Both of these ultimately lead me to the same set of settings (as they probably should).
And there I only have three rules. One each for KeepassXC, Simutrans and MPV.
Nothing that should affect Systemsettings or Discover.

Might this be an arch issue? I originally got my kde stuff from the arch repos and only switched to the kde unstable repos a few months back.
Comment 13 Nate Graham 2024-02-07 17:41:51 UTC
Doubtful. Are you still able to resize the window to be too small in a new, clean, fresh user account? If not, then *something* in your homedir is overriding KWin's ability to enforce minimum window sizes. But if it still happens in a new fresh user account, then I am at a loss.
Comment 14 Tammes Burghard 2024-02-07 22:46:58 UTC
Yes, I can also make the settings window this narrow on a fresh user account.
Comment 15 Zamundaaa 2024-02-07 23:02:49 UTC
Please check what the minimum size of the window actually is - the kde unstable repo is shipping the Qt 6.7 beta, so this might just be a bug in Qt.
You can see the minimum size in the kwin debug console (just search for "kwin debug console" in krunner to open it).
Comment 16 Tammes Burghard 2024-02-07 23:36:08 UTC
For both the settings and discover, it reports a min size of 150x150.
Comment 17 Zamundaaa 2024-02-08 13:57:33 UTC
150x150 is the minimum size that KWin enforces for decorated windows. If the min size is that low, it means Qt isn't setting a minimum size.
Apparently that was a bug at some point in 6.7, but it's already been fixed. It should correct itself whenever Arch updates Qt 6.7
Comment 18 Tammes Burghard 2024-02-08 17:30:33 UTC
Perfect, thank you for pointing out :)