As we have been working down some bugs from earlier changes, we introduced some additional error conditions in the logs. Now that the new focus approach is available, switching the stackbar to that means we can avoid needing to pass down ForceUpdate and FocusChange events for non-windows, which removes many of these cases.
In addition we do a check in should_manage that the target object is actually a window, ignoring the event if it is not.
🔄 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/754
**Author:** [@raggi](https://github.com/raggi)
**Created:** 4/14/2024
**Status:** ✅ Merged
**Merged:** 4/14/2024
**Merged by:** [@raggi](https://github.com/raggi)
**Base:** `master` ← **Head:** `raggi/reduce-errors`
---
### 📝 Commits (1)
- [`1e37d6d`](https://github.com/LGUG2Z/komorebi/commit/1e37d6df8b67cceddddcddcf9ef539abd357c2dd) fix(wm): reduce errors from non-window events
### 📊 Changes
**3 files changed** (+8 additions, -18 deletions)
<details>
<summary>View changed files</summary>
📝 `komorebi/src/process_event.rs` (+1 -8)
📝 `komorebi/src/stackbar.rs` (+3 -9)
📝 `komorebi/src/window.rs` (+4 -1)
</details>
### 📄 Description
As we have been working down some bugs from earlier changes, we introduced some additional error conditions in the logs. Now that the new focus approach is available, switching the stackbar to that means we can avoid needing to pass down ForceUpdate and FocusChange events for non-windows, which removes many of these cases.
In addition we do a check in should_manage that the target object is actually a window, ignoring the event if it is not.
---
<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/754
Author: @raggi
Created: 4/14/2024
Status: ✅ Merged
Merged: 4/14/2024
Merged by: @raggi
Base:
master← Head:raggi/reduce-errors📝 Commits (1)
1e37d6dfix(wm): reduce errors from non-window events📊 Changes
3 files changed (+8 additions, -18 deletions)
View changed files
📝
komorebi/src/process_event.rs(+1 -8)📝
komorebi/src/stackbar.rs(+3 -9)📝
komorebi/src/window.rs(+4 -1)📄 Description
As we have been working down some bugs from earlier changes, we introduced some additional error conditions in the logs. Now that the new focus approach is available, switching the stackbar to that means we can avoid needing to pass down ForceUpdate and FocusChange events for non-windows, which removes many of these cases.
In addition we do a check in should_manage that the target object is actually a window, ignoring the event if it is not.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.