-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wm): dump and load previous instance state
This commit adds changes to the main wm process to dump a state file to temp_dir() when the process is exited either via komorebic stop or ctrl-c, and to automatically try to reload that dumped state file if it exists on the next run. A new flag "--clean-state" has been added to both komorebi.exe and the komorebic start command to override this behaviour. The dumped state file can only be applied if the number of connected monitors matches the number of monitors recorded in the state, and if every HWND listed in the state file still exists. This is validated by calling Window.exe(), which under the hood checks for the continued existence of the process associated with the HWND. Only the "workspace" subsection of the state for each matching connecting monitor will be applied.
- Loading branch information
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters