mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1135] feat: add move-new-windows-to-focused-monitor #1216
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.