mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Moving windows between monitors on UltrawideVerticalStack layout
#381
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?
Originally created by @CtByte on GitHub (May 18, 2024).
Describe the bug
When moving a window from left to right using the
komorebic move rightcommand between 2 monitors, the moved window is added to the right side of the 2nd monitor instead of the left.This issue happens when the 2nd monitor is using the
UltrawideVerticalStacklayout. I also tested in 'BSP' and the window is added correctly. To the left, instead of the right.To Reproduce
Steps to reproduce the behavior:
Dual monitor setup

UltrawideVerticalStacklayoutkomorebic move rightcommandExpected behavior
The window coming from the 1st monitor is added to the left side of the 2nd monitor.
Screenshots and Videos
https://github.com/LGUG2Z/komorebi/assets/165908630/8fa60b3f-6016-4bd2-89f0-266c883b1f9e
Operating System
komorebic checkOutput@LGUG2Z commented on GitHub (May 19, 2024):
a29ab4cfb3/komorebi/src/window_manager.rs (L1247):L1252The insertion position when moving across monitors depends on the last focused container index on the target monitor, and the case of
UltrawideVerticalStacklayout is a little more complex as the container at the index0occupies the largest position (in the middle) rather than the leftmost or topmost position (which is usually the largest position in other layouts)@CtByte commented on GitHub (May 19, 2024):
Ah I see that is why when there are 2 windows on the 2nd monitor, a window on the 1st monitor will be placed in the middle of the workspace when moved with commands.
So I would say, let's keep it simple as this feels like more of a feature than a bug 😄