On Wed, Nov 15, 2000 at 10:23:24PM -0800, Ken Robertson wrote:
> Hey,
>
> I was wondering if these was some way to have Blackbox's window cycling
> behave like other window managers. Like, if I tab to one window, I can get
> back to the previous window simply by tabbing again, rather than going
> through all the windows. Is this possible?
>
> I couldn't find out if it was, so I started hacking apart the source code
> to implement it. I got it working, only its missing one thing. It only
> goes back and forth between two windows, since it has no way of knowing
> when the person is continueing to cycle. :) Minor hindsight.
>
> If the feature isn't built in, I'll probably just end up fixing my little
> hack, which will probably require something done to bbkeys too.
>
Yeah, you'd need to change bbkeys too. The thing with Windows-style
cycling is that if you want to keep cycling you don't release the
ALT key. Blackbox doesn't pay any attention to this, since it just
looks for window cycling messages from bbkeys.
The other problem is that the most natural way to keep track of
windows for Windows-style cycling is via the stacking order (if
I recall, it essentially just swaps the two top-most windows
unless you keep the ALT down), and at present Blackbox doesn't
make this information available to outside programs.
Now, since the stacking order is part of the NET WM spec, Blackbox
will provide it in the next major release, but that will be a little
while -- I'm more or less going through the code line by line, rewriting
things as I go (and then rewriting them again, and again... I'm too
damn picky sometimes).
Jeff Raven