On Wed, Nov 15, 2000 at 11:48:45PM -0800, Ken Robertson wrote:
> Hmm, guess I will go ahead and finish my patch since it might be a while.
> :) It is pretty easy, but probably not the best way. Since BB already has
> nice linked list functions, I just created another linked list in
> Workspace.cc called positionList, and whenever a window is
> added/removed/raised, the window number is inserted/removed/shifted.
>
> Then in Screen.cc, I have the nextFocus function simply read the first
> unshaded window. Problem is they just cycle between eachother. Is there a
> way, that for instance, bbkeys could send a parameter along with the next
> focus message? Have the parameter be a count of how many times it has been
> pressed, then just have next focus load that position's window.
>
Yes, that's what I would recommend. The events that are used in
the protocol come with room for five parameters; right now bb
only uses the first one as part of the window cycling message,
so there's plenty of room.
Jeff Raven