mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Stacked windows are not moved together using komorebic move commands
#380
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 stacked windows are moved using the commands, only the top window is moved. The behaviour is slightly different when moving on the same monitor or when moving to an other monitor.
I am using the UltrawideVerticalStack layout.
To Reproduce
Steps to reproduce the behavior (see video):
Monitor 1 b,Monitor 1 a,Firefoxkomorebic move rightcommand.Monitor 1 astuck on the left.Firefox,Monitor 1 a,Monitor 1 bMonitor 1 a.Monitor 1 ajumps to the left.Firefox,Monitor 1 b,Monitor 1 aIn case moving to an other monitor, the "stuck" window will not jump under the stackbar when clicking on its tag. An other window (that is not in the stack,
Firefoxin my example) needs to be focused for that to happen.But even this does not always work, so it can be tested again if this can be fixed for a single monitor.
Expected behavior
Stacked windows are moved together.
Videos
https://github.com/LGUG2Z/komorebi/assets/165908630/68c5cdaf-c704-4478-81d5-3fd00138c7cc
Operating System
komorebic checkOutputAdditional context
When I switch to another workplace and back at
step 4(instead of clicking the tab), the "stuck" window jumps to the correct position like instep 6. The same seems to be true when I change the workspace (where the "stuck" window is) on the multi monitor test.@LGUG2Z commented on GitHub (May 18, 2024):
I'm not able to reproduce this exactly but I do have some jank when using the mouse instead of the hotkeys.
Since the hotkeys work for now I'm gonna leave this open until I can split out the stackbar into its own module like I did for the borders and see if this is one of the those edge cases that gets fixed by the more isolated design 🤞
@CtByte commented on GitHub (May 18, 2024):
I could not always reproduce this exactly either, but let's see what comes up when you get the time to make the stackbar module 🤞
@CtByte commented on GitHub (May 18, 2024):
I am running the
monitor-madnessbranch and I do not think that I saw this issue when I ran themaina while back, but I could be wrong.I have the feeling that the stackbar used to hide stacked windows that were not visible (behind the focused tab). Almost like when you change between workspaces.
@LGUG2Z commented on GitHub (May 19, 2024):
I think this is fixed on the stackbar manager branch now 🤞
@CtByte commented on GitHub (May 19, 2024):
I tried out the
stackbar-managerbranch and when I only use the hotkeys it seems to be fine even when I move stacks to another monitor and cycle through tabs.Once I click the tabs it behaves differently, similar to what I described as hidden stacked windows being stuck and the stack being scattered around 2 monitors.
I am also getting this error in the console when I am clicking the tabs (after moving the stack to another monitor):
(not sure how much of the logs I should grab)
And when I use the hotkey
cycle-stackcommand instead of clicking the tabs, the scattered stack recovers.So I am guessing there is something done differently when the command is used and when the mouse is used.
@LGUG2Z commented on GitHub (May 19, 2024):
0140e8aba7I tried reproducing both of the issues you described after making some changes in the commit above and everything looks okay to me now; no cross-monitor move errors or rendering of windows in old positions on my end 🤞
@CtByte commented on GitHub (May 19, 2024):
I tried to test it in every possible way I could think of and it worked. 🎉
I moved the stack and clicked the tabs with mouse only, command only and a mix of the two.
The only thing I could not do is moving the stack by mouse on the same monitor to swap places with another window. When I move a none stacked window to swap places with a stack that worked.
https://github.com/LGUG2Z/komorebi/assets/165908630/7c7d0211-7326-4774-aa5c-3e0426de4d3e
It can be that I am just clumsy, but I would consider this to be a win.
Thank you for taking the time!
@LGUG2Z commented on GitHub (May 19, 2024):
Mouse moving has also been fixed here:
b68ba2ffcd@CtByte commented on GitHub (May 19, 2024):
I confirm, indeed it is 👍