mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-25 02:41:13 +01:00
Added commands to forcibly manage and unmanage windows if they don't get picked up for tiling automatically. This commit adds support for running those operations on the currently focused window, but if there is a need to specify a hwnd to operate on, that could be added pretty easily too in the future, though I'd like to keep the complexity of looking up and passing hwnds to a command out of the CLI if possible. This commit also fixes an issue with restoring floating windows. I'm not sure what happened, but at some point, for me at least, WindowsApi::top_visible_window started returning explorer.exe all the time, so I've switched this out for WindowsApi::foreground_window. I have a feeling I was using TopWindow before, thinking it was GetForegroundWindow, which it isn't, and it wasn't reliable, so I created the top_visible_window abstraction on top of it, which also turned out to be unreliable. Anyway, it's working now. I think the next step will be to create a manage-rule command to compliment the float-rule command which users can use to handle edge cases with their apps in their configuration. re #16