mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1511] Multimonitor move to different monitor #1439
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/1511
Author: @Gamsel
Created: 7/23/2025
Status: 🔄 Open
Base:
master← Head:MulitMonitorFocusSwitch📝 Commits (1)
7249309Baseline checkin📊 Changes
1 file changed (+71 additions, -15 deletions)
View changed files
📝
komorebi/src/window_manager.rs(+71 -15)📄 Description
Problem: If more than one monitor is eligible to move to, the behavior is undefined.
Solution: In WindowManager::monitor_idx_in_direction, added logic to handle multiple candidate monitors. When more than one monitor is found, the method now checks the top-left corner of the currently focused window to determine the appropriate monitor. If this check fails, it falls back to the first detected monitor.
P.S. This is my first time using Rust and contributing to a repository — please let me know if I’ve done anything incorrectly or if there’s anything I can improve! :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.