I personally prefer my windows to be spawned on the monitor i have currently selected instead of where windows decides to spawn it, so i added a config option to disable the monitor refocus when a window is shown.
This PR also fixes an issue where for some reason a FocusChange event is called before the Show event (windows terminal is doing that for me) and because of that the window is not yet in any workspace which will for 1. throw an error in the FocusChanged match and for 2. refocus the monitor regardless of the config option
🔄 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/1135
**Author:** [@notTamion](https://github.com/notTamion)
**Created:** 11/21/2024
**Status:** 🔄 Open
**Base:** `master` ← **Head:** `add-move-new-to-focus`
---
### 📝 Commits (2)
- [`6e72c6e`](https://github.com/LGUG2Z/komorebi/commit/6e72c6ebc0b82e0d60da64ef6a9db8056a10c0d0) feat: add move-new-windows-to-focused-monitor
- [`9d37966`](https://github.com/LGUG2Z/komorebi/commit/9d37966237e5affd2ada2b763ea45f4f9607eec5) schema
### 📊 Changes
**4 files changed** (+41 additions, -22 deletions)
<details>
<summary>View changed files</summary>
📝 `komorebi/src/process_event.rs` (+26 -22)
📝 `komorebi/src/static_config.rs` (+9 -0)
📝 `komorebi/src/window_manager.rs` (+2 -0)
📝 `schema.json` (+4 -0)
</details>
### 📄 Description
I personally prefer my windows to be spawned on the monitor i have currently selected instead of where windows decides to spawn it, so i added a config option to disable the monitor refocus when a window is shown.
This PR also fixes an issue where for some reason a FocusChange event is called before the Show event (windows terminal is doing that for me) and because of that the window is not yet in any workspace which will for 1. throw an error in the FocusChanged match and for 2. refocus the monitor regardless of the config option
---
<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/1135
Author: @notTamion
Created: 11/21/2024
Status: 🔄 Open
Base:
master← Head:add-move-new-to-focus📝 Commits (2)
6e72c6efeat: add move-new-windows-to-focused-monitor9d37966schema📊 Changes
4 files changed (+41 additions, -22 deletions)
View changed files
📝
komorebi/src/process_event.rs(+26 -22)📝
komorebi/src/static_config.rs(+9 -0)📝
komorebi/src/window_manager.rs(+2 -0)📝
schema.json(+4 -0)📄 Description
I personally prefer my windows to be spawned on the monitor i have currently selected instead of where windows decides to spawn it, so i added a config option to disable the monitor refocus when a window is shown.
This PR also fixes an issue where for some reason a FocusChange event is called before the Show event (windows terminal is doing that for me) and because of that the window is not yet in any workspace which will for 1. throw an error in the FocusChanged match and for 2. refocus the monitor regardless of the config option
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.