Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: watcher process for cleaning up after crashes #360

Merged
merged 17 commits into from
Aug 19, 2023

Conversation

lars-berger
Copy link
Member

@lars-berger lars-berger commented Aug 17, 2023

  • On startup, spawn a 2nd instance of the current executable (ie. GlazeWM.exe) with a special flag to indicate that the watcher logic should be run for this new process.
    • Create new project GlazeWM.App.Watcher containing the logic for the watcher. The watcher keeps track of managed window handles and on disconnect from the main process IPC server (eg. due to a crash), it restores all managed handles.
    • On window manage/unmanage, emit WindowManagedEvent and WindowUnmanagedEvent.

@lars-berger lars-berger merged commit f424fd7 into master Aug 19, 2023
2 checks passed
@lars-berger lars-berger deleted the feat/watcher-process branch August 19, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant