[openbox] Directional switching

Mikael Magnusson mikachu at gmail.com
Tue Jul 7 14:11:56 EDT 2015


On Tue, Jul 7, 2015 at 5:49 PM, Ian Zimmerman <itz at buug.org> 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


More information about the openbox mailing list