This commit removes some workarounds on the update_focused_workspace function that were there to fix issues related to some bugs on the workspace.restore() function. This commit fixes the bugs on the restore function instead. The update_focused_workspace function should be used only to update a workspace layout.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1356
**Author:** [@alex-ds13](https://github.com/alex-ds13)
**Created:** 3/17/2025
**Status:** ✅ Merged
**Merged:** 3/18/2025
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `fix/workspace-restore`
---
### 📝 Commits (1)
- [`20055ad`](https://github.com/LGUG2Z/komorebi/commit/20055ad6f36ca769252078165c9184f93e080e60) fix(wm): fix bugs on workspace restore and remove workarounds
### 📊 Changes
**2 files changed** (+7 additions, -21 deletions)
<details>
<summary>View changed files</summary>
📝 `komorebi/src/window_manager.rs` (+0 -20)
📝 `komorebi/src/workspace.rs` (+7 -1)
</details>
### 📄 Description
This commit removes some workarounds on the `update_focused_workspace` function that were there to fix issues related to some bugs on the `workspace.restore()` function. This commit fixes the bugs on the `restore` function instead. The `update_focused_workspace` function should be used only to update a workspace layout.
<!--
Please follow the Conventional Commits specification.
If you need to update your PR with changes from `master`, please run `git rebase master`.
By opening this PR, you confirm that you have read and understood this project's `CONTRIBUTING.md`.
-->
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1356
Author: @alex-ds13
Created: 3/17/2025
Status: ✅ Merged
Merged: 3/18/2025
Merged by: @LGUG2Z
Base:
master← Head:fix/workspace-restore📝 Commits (1)
20055adfix(wm): fix bugs on workspace restore and remove workarounds📊 Changes
2 files changed (+7 additions, -21 deletions)
View changed files
📝
komorebi/src/window_manager.rs(+0 -20)📝
komorebi/src/workspace.rs(+7 -1)📄 Description
This commit removes some workarounds on the
update_focused_workspacefunction that were there to fix issues related to some bugs on theworkspace.restore()function. This commit fixes the bugs on therestorefunction instead. Theupdate_focused_workspacefunction should be used only to update a workspace layout.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.