mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
Maximized window should not be retiled after switching workspace #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crosstyan on GitHub (Aug 18, 2021).
I don't think it's a bug and I know there's
toggle-monoclein komorebi, but personally I prefer a more native monocle implement which is maximizing a window.You can see the problem that window get retiled after switching back to a workspace with maximized window, which is not what I expected.
@LGUG2Z commented on GitHub (Aug 18, 2021):
I was not able to find a way to do this relying just on WinEvents, but since you are already using a hotkey for native maximization, I have implemented a
komorebiccommand (toggle-maximize) to handle maximization and restoration through thekomorebiprocess. This way, it can be tracked as part of the window manager state, and when switching back to a workspace that has a maximized window, the window will be loaded in the maximized state.@crosstyan commented on GitHub (Aug 18, 2021):
Gist updated.