Hyprland
Hyprland copied to clipboard
Add setfloating command
Describe your PR, what does it fix/add?
This adds a new dispatcher - setfloating. The another dispatcher togglefloating like it's name suggests only toggles the floating state, but what if a user only wants to set it to a specific state? an example use case could that we want to float a window when dragging it, but it doesn't make much sense to unfloat when dragging if it's already floated. Example bind:
bind = $mainMod, mouse:272, setfloating, 1
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
It's my first time here, so I obviously don't have much experience with Hyprland so I'm hoping I did not fuck things up.