Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

min_size doesn't work since rules v3

Open vaxerski opened this issue 1 month ago • 9 comments

Discussion link

https://github.com/hyprwm/Hyprland/discussions/12386

Description

windowrule = match:class kitty, min_size 200 200

no work

vaxerski avatar Nov 20 '25 17:11 vaxerski

FWIW min_size does work for floating.

windowrule = float on, min_size 200 200, match:class foot

tekstryder avatar Nov 20 '25 20:11 tekstryder

windowrule = float on, min_size 200 200, match:class foot

It doesn't work when the window is created or goes floating initially though. It will only kick in when you try and resize the window. min_size should prevent the window from opening smaller than the min_size.

tannerellen avatar Nov 20 '25 21:11 tannerellen

Interesting. I was only providing one case where it is honored.

tekstryder avatar Nov 20 '25 22:11 tekstryder

can you check https://github.com/hyprwm/Hyprland/pull/12458 just in case?

vaxerski avatar Nov 25 '25 14:11 vaxerski

can you check #12458 just in case?

Still doesn't work with that pull request.

https://github.com/user-attachments/assets/15bcb3a5-6473-429b-a85d-74dddc71408e

tannerellen avatar Nov 25 '25 19:11 tannerellen

https://github.com/hyprwm/Hyprland/pull/12491

vaxerski avatar Nov 27 '25 21:11 vaxerski

#12491

Don't know if there are going to be multiple pull requests for this issue but this doesn't resolve the issue. A newly created floating window doesn't honor min_size just like in my video above.

Edit: In case it's not clear in the video as soon as you attempt to resize the window the min_size kicks in immediately.

tannerellen avatar Nov 28 '25 04:11 tannerellen

@tannerellen check the MR now.

vaxerski avatar Nov 30 '25 14:11 vaxerski

@tannerellen check the MR now.

@vaxerski Yep it works now, thanks!!

tannerellen avatar Nov 30 '25 18:11 tannerellen