Skip to content

Conversation

@al3rez
Copy link

@al3rez al3rez commented Feb 27, 2025

Resolves #896

Adds support for system sleep events in the window manager:

- Introduced `SystemSleep` variant to `PlatformEvent`

- Updated event handling in `wm.rs` to process system sleep events

- Prepared `handle_system_sleep` function for future implementation
@lars-berger
Copy link
Member

Thank you for the PR! 🙌 Mentioned it on Discord, but our current approach ignores display changes during sleep, which should achieve the same result as storing/restoring monitor state on hibernate. If this PR does fix the issue, it's likely due to side effects rather than the monitor state feature itself - e.g., I notice it would skip the first display settings event after standby, which might be the actual solution. If that's the case, would you consider submitting a focused PR for just that approach instead?

@lars-berger lars-berger closed this Jun 3, 2025
@github-project-automation github-project-automation bot moved this from 📬 Needs triage to ✅ Done in glazewm Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Feature Request] When Connecting / Disconnecting monitors, remember previous Workspace layouts

2 participants