mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1289] [MERGED] fix(wm): monitor reconnect #1301
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?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1289
Author: @alex-ds13
Created: 2/22/2025
Status: ✅ Merged
Merged: 2/22/2025
Merged by: @LGUG2Z
Base:
master← Head:fix/monitor-reconnect📝 Commits (3)
7a4c23bfix(wm): include workspace rules on cached monitordf33b68fix(wm): make workspace fields publicc2b3f7bfix(wm): allow stripping not needed info from state📊 Changes
2 files changed (+81 additions, -22 deletions)
View changed files
📝
komorebi/src/window_manager.rs(+60 -1)📝
komorebi/src/workspace.rs(+21 -21)📄 Description
@LGUG2Z I've noticed lately that some of my workspace rules weren't being applied. After looking for the cause I found out this happened after I disconnected and reconnected monitors when testing. All because we set the serde skip here: https://github.com/LGUG2Z/komorebi/pull/1241#discussion_r1929649354
So on this PR I'm removing the serde skip (or setting it to skip only when it is
None) and to prevent sending it onStateto all the subscribers I've change the way theStateis created "from" theWindowManagerto strip some unneeded parts, in this case theworkspace_configfrom all workspaces by setting it toNone.Although this method can be used in the future to strip down even more things from the monitors and/or workspaces in case we want to reduce the size of
Statethat we are sending!🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.