olemartinorg / i3-alternating-layout

Scripts to open new windows in i3wm using alternating layouts (splith/splitv) for each new window
MIT License
350 stars 41 forks source link

Inconsistent behaviour when moving tiled windows #24

Open micchan85 opened 4 years ago

micchan85 commented 4 years ago

I am sometimes unable to move a focused window left or right, only up and down. Other times the focused will move two spaces instead of one. I'm running a dual monitor setup, and the issue occurs very often when trying to move a window between monitors. Any idea how to fix this? Great script, but this is a bit issue for me.

olemartinorg commented 4 years ago

Hi! Have a look at the comments in #23. Patches are welcome if you find a better way to handle this and document how you did it, or extend the script to handle those cases!

mreppen commented 3 years ago

Hei!

Thanks for a great script!

I wanted a slightly different splitting behavior and ended up changing a lot to make manual tiling behave as expected. Because I wanted different behavior, I did not send a PR.

An approach similar to mine could be useful for this script too. Available here: https://github.com/mreppen/i3-new-split-long

It does the splitting after window creation, which comes with the drawback of an occasional flicker from quick layout changes. So maybe it could be used with a flag option here to preserve the original behavior. The implementation could likely be improved though.