tarkah / grout

Simple tiling window manager for Windows
MIT License
205 stars 8 forks source link

Add ability to toggle window state via hotkey. #32

Closed DiXN closed 4 years ago

DiXN commented 4 years ago

Adds the possibility to define a optional hotkey for toggling between maximized window state and previous window state.

A possible use case would be in case of a 50/50 split to shortly maximize one window e.g. for better readability and then go back to the 50/50 split.

There might be a better way to do this, especially to get the full grid dimensions but it seems to work as indented.

tarkah commented 4 years ago

Yeah, I think this is a good addition. I'll review today, thanks!

tarkah commented 4 years ago

I've made adjustments to account for tranparent borders, window restore and persisting previous_resize & active_window when the grid is regenerated (be it monitor change, profile change or toggling grid)

tarkah commented 4 years ago

Can you test on your end and confirm it is still working as you intended? I think I've thoroughly tested, trying every combination of events, and nothing seems off, but I'd like a second pair of eyes.

DiXN commented 4 years ago

Everything still works after your changes. I did some minor refactoring in regards to border adjustment.

tarkah commented 4 years ago

Awesome! Thanks for the refactor.