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

ioncore.goto_next directionals not really working in floating #365

Open
kristopolous opened this issue Nov 9, 2023 · 0 comments
Open

ioncore.goto_next directionals not really working in floating #365

kristopolous opened this issue Nov 9, 2023 · 0 comments

Comments

@kristopolous
Copy link
Contributor

This "bug" has been biting me for I hate to say years but I guess I'm too lazy to have actually looked into it.

In the floating mode, the lua ioncore.goto_next(_chld, 'left') and ioncore.goto_next(_chld, 'right') should probably work like this:

Look at the current window focus top left coordinates. Go to the closest window on the left or right with respect to that. If they are on the same left or right distance coordinate then go to the one whose ABS (up/down) distance is closest. If those are the same, then prefer the LRU in the window stack.

That would allow a deterministic traversal in floating mode and the positioning of windows to act as the focus ring, it's a really powerful mechanism.

Right now it just does some rather unpredictable behavior that I can't really determine. I haven't looked deep into the code.

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

1 participant