Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3ipc_move next/prev don't seem to recognize master window #5

Open
ChristianChiarulli opened this issue Dec 27, 2021 · 3 comments
Open

Comments

@ChristianChiarulli
Copy link

Hey thanks for the great work on this.

I'm having an issue where i3ipc_move next/prev doesn't pick up on the master window. focus using i3ipc_focus seems to be working just fine however so maybe there's something there.

@chlyz
Copy link
Owner

chlyz commented Dec 27, 2021

Thank you for your kind words. I will take a look at this (and the other reported issues). I also want to thank you for your latest series on Lua customization of Neovim, it made me take the plunge a few days ago when I finally got back on Linux and had to start from scratch.

Are you testing this on i3 or trying out sway?

@ChristianChiarulli
Copy link
Author

ChristianChiarulli commented Dec 27, 2021

Sway, here is my config for reference: link

@chlyz
Copy link
Owner

chlyz commented Dec 27, 2021

Now that I have tested this, it is as you say that the i3ipc_move next/prev command is just within the parent container, the main or the secondary, but it cannot cross the boundaries.

It was a some time ago I wrote this software, but reading the README once again, this seems to be a design decision I made for some reason. It is possible to implement this so that the final product is how it would work in dwm. But due to the tree structure of the windows used in i3/sway (not a list as in dwm) it will require some special handling when crossing the parent container, i.e., moving a window from the main to the secondary container.

There are two more move commands i3ipc_move other and i3ipc_move swap that in some sense makes all the move commands possible, but not as in dwm at the moment.

Since I am also interested in using Sway, if I can get the screen sharing to work, I would also like to make this more like dwm. I will read up on the ipc-protocol to see if there have been any changes and try to make sway behave a bit more like dwm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants