-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Winprop 'min_size' seems to be ignored #312
Comments
Ah - I think this is an effect of #95 (also mentioned in https://notionwm.net/migration.html). The background here is that honoring the minimum sizes as reported by the windows themselves was broken on Notion 3. When we fixed it we noticed that lead to undesirable behavior: some applications report unnecessarily large min_size values, which is especially annoying since the minimum applies to the whole frame, regardless of which tab is selected. We then decided to disable honoring Perhaps it would be a nice improvement to change the default value for ignore_min_size to depend on whether or not |
Indeed an undesirable behavior.
Do I get you right? You mean adding the line to the defwinprop{
class = "Firefox",
role = "browser",
float = true,
ignore_min_size = false,
min_size = { w = 780, h = 660 },
max_size = { w = 780, h = 660 },
} If so, it did not work for me.
Sounds good! |
That's what I meant, yeah.
Hmm, then I guess this needs more analysis ;). Do you have a chance to dig into this? |
Yes, looks like. 😄
You mean dig inside the code to find the reason? |
yes :) |
I think I'm not able to do so... my only basic C/C++ skills have vanished meanwhile. It's been quite a while (or rather ages) since I used those languages. |
Notion 4 seems to ignore the
min_size
property.I just noticed that I can resize (downsize) floating windows, even though, I have the following code inside my
cfg_kludges.cfg
.For example with Firefox:
The
max_size
property works properly. I can't make the window larger than the given size.The text was updated successfully, but these errors were encountered: