-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stackbar): add stackbar manager module
This commit removes all stackbar-related code from Container, Workspace, process_command, process_event etc. and centralizes it in the new stackbar_manager module. Instead of trying to figure out where in process_event and process_command we should make stackbar-related changes, a notification gets sent to a channel that stackbar_manager listens to whenever an event or command has finished processing. The stackbar_manager listener, upon receiving a notification, acquires a lock on the WindowManager instance and updates stackbars for the focused workspace on every monitor; this allows us to centralize all edge case handling within the stackbar_manager listener's loop. Global state related to stackbars has also been moved into the stackbar_manager module, which also tracks the state of stackbar objects (STACKBAR_STATE), mappings between stackbars and containers (STACKBARS_CONTAINERS) and the mappings between stackbars and monitors (STACKBARS_MONITORS). A number of edge cases around stackbar behaviour have been addressed in this commit (re #832), and stackbars now respect the "border_style" configuration option.
- Loading branch information
Showing
11 changed files
with
559 additions
and
495 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
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
Oops, something went wrong.