[PR #1135] feat: add move-new-windows-to-focused-monitor #1216

Open
opened 2026-01-05 14:54:29 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1135
Author: @notTamion
Created: 11/21/2024
Status: 🔄 Open

Base: masterHead: add-move-new-to-focus


📝 Commits (2)

  • 6e72c6e feat: add move-new-windows-to-focused-monitor
  • 9d37966 schema

📊 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.

## 📋 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>
adam added the pull-request label 2026-01-05 14:54:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1216