Re: Directional switching

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <CAHYJk3QdWNm0rjd9VcU+cgK2g+koJdJQjbCfxn8+_7A+uL8_sg@mail.gmail.com>
On Tue, Jul 7, 2015 at 5:49 PM, Ian Zimmerman <[email protected]> wrote:
> I am disappointed by the result of the directional commands in the
> following specific situation.  I have a grid of windows of the same
> size, lined up so they all touch (I guess "tiled" is a good description)
> and I go switch with direction == northwest (the same is true for
> northeast etc.)  The window selected by the algo is the one directly to
> the north from the focussed one, and not the one diagonally to the
> northwest as I expected.
>
> I looked at the code ie. focus_find_directional in openbox/focus_cycle.c
> and I cannot say I understand it.  Is there a paper I can read with a
> rationale?  Or can the author(s) of the code explain?
>
> I hope after I gain understanding of the current algo's goal, I can
> offer a patch to make it behave better in the situation I described.

I would guess the algo is somewhat tuned to only using four
directional keybinds, so it lets you select windows that are slightly
off from the target direction.

-- 
Mikael Magnusson
_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.