Maximized window should not be retiled after switching workspace #10

Closed
opened 2026-01-05 14:47:38 +01:00 by adam · 2 comments
Owner

Originally created by @crosstyan on GitHub (Aug 18, 2021).

I don't think it's a bug and I know there's toggle-monocle in komorebi, but personally I prefer a more native monocle implement which is maximizing a window.

Animation4

Animation

You can see the problem that window get retiled after switching back to a workspace with maximized window, which is not what I expected.

Originally created by @crosstyan on GitHub (Aug 18, 2021). I don't think it's a bug and I know there's `toggle-monocle` in komorebi, but personally I prefer a more native monocle implement which is maximizing a window. ![Animation4](https://user-images.githubusercontent.com/49297668/129844889-b3225c02-75c8-4179-a31c-7a91885e967f.gif) ![Animation](https://user-images.githubusercontent.com/49297668/129846168-21444f82-ef4c-4fc6-979e-617b1298a7bb.gif) You can see the problem that window get retiled after switching back to a workspace with maximized window, which is not what I expected.
adam added the enhancement label 2026-01-05 14:47:38 +01:00
adam closed this issue 2026-01-05 14:47:39 +01:00
Author
Owner

@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 komorebic command (toggle-maximize) to handle maximization and restoration through the komorebi process. 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.

@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](https://gist.github.com/crosstyan/dafacc0778dabf693ce9236c57b201cd#file-komorebic-ahk-L200), I have implemented a `komorebic` command (`toggle-maximize`) to handle maximization and restoration through the `komorebi` process. 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.
Author
Owner

@crosstyan commented on GitHub (Aug 18, 2021):

Gist updated.

@crosstyan commented on GitHub (Aug 18, 2021): [Gist](https://gist.github.com/crosstyan/dafacc0778dabf693ce9236c57b201cd/revisions#diff-d51fbfa52f9e52e7086adfeca12fa3b4067ea9e18d61931e126cb2a428244a30L207-L227) updated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#10