polonium icon indicating copy to clipboard operation
polonium copied to clipboard

Respect minimum size of a window

Open Qwyntex opened this issue 1 year ago • 9 comments

Windows like KDE Settings have a minimum size that in some cases are bigger than the size of the tile (eg. KDE System Settings on a 100% scaled 1920x1080 monitor with BTree Tiling with two other open windows). In those cases the window kind of awkwardly extends over the other windows. It'd be great if either the tile would respect the minimum size of the window or the windows' size would be forced to fit inside the tile (a toggle in the settings?). When the tiling updates the window that doesn't fit currently gets put into floating mode. If there is no way for the windows to fit that is probably the ideal behavior but it is a little annoying when I can just manually resize the tiles to fit the minimum size and have it working again (especially since resizing other windows will update the tiling and I have to retile the window again).

I love the Project otherwise and am currently configuring my system around. Thank you!

Qwyntex avatar Apr 07 '24 13:04 Qwyntex

This one: https://github.com/lingtjien/Grid-Tiling-Kwin has this feature and is cofigurable with a couple of cool other options. Unfortulately it is not stable enough for me to use on a daily basis. I also noticed someone made a fork of Krohnkite for plasma 6, but is unstable as well, and needs work. Would be cool if someone made a configurable hybrid of all three.

djneba avatar Apr 08 '24 08:04 djneba

There is a system in place to prevent this. Can you provide a log?

zeroxoneafour avatar Apr 08 '24 23:04 zeroxoneafour

Full log at https://pastebin.com/5vua6H1G

I have created a couple windows and moved a couple windows around, both times with a window that works (konsole) and one that doesn't (system settings). I also removed konsole at one point. I hope this provides enough information

There is a system in place to prevent this

Has this been added after the last release? ~~I have downloaded the script through the KDE-Store and not from github.~~ nvm, I am using the latest release on github

Qwyntex avatar Apr 09 '24 11:04 Qwyntex

You are using the latest build from the latest commit on github actions right?

zeroxoneafour avatar Apr 09 '24 11:04 zeroxoneafour

I am using the Development build in the releases

Qwyntex avatar Apr 09 '24 12:04 Qwyntex

All of the resizing layout debug messages have been removed in the latest build. It has been brought to my attention that sometimes KDE refuses to update the script if you try to install it without uninstalling first due to version conflicts. If you can, try building the project yourself with make (which will usually install it successfully)

zeroxoneafour avatar Apr 19 '24 02:04 zeroxoneafour

I have cloned the master branch and then, after uninstalling, built it with make. This solved the issue of having the too big window put in floating mode. However it still doesn't fix it overlapping with other windows image

But good to know that KDE sometimes doesn't like reinstalling scripts

Qwyntex avatar Apr 19 '24 12:04 Qwyntex

You can solve this problem by adding a Window rule, which sets for all Normal Window types the Minimun Size to 1x1 Pixel. image

czhunor avatar Jun 19 '24 21:06 czhunor

Hey, just wanted to check up on if there's been any development on this issue. I don't know when it happened but the settings are now being resized (Maybe Plasma removed the minimum size for the settings at some point). The issue persists with other windows though.

Let me know if I can help somehow

Qwyntex avatar Aug 10 '24 10:08 Qwyntex