Umm.  I am the "bbkeys guy".  =:)  How weird does _that_ sound!  Anyway....
Whilst I'm not the type to try to stifle creative expression, I think
that the bbcycle application xOr wrote should be patched into bbkeys,
rather than having Yet Another Blackbox BBtool (TM) application.  Not
that YABB's are bad by any means, it's just sort of redundant, since bbcycle
(from what I've gathered from the posts) just expands and improves on something 
that bbkeys has done since the early days of blackbox 0.6x-alpha--just about
two years now....

Like Jeff said below, this is actually not all that difficult to do--it
would be a simple matter of keeping a LinkedList of the client window
list (as does bbpager already--I believe that the code for this is
already in bbkeys's code-base--I've just never taken the time to use
it), and changing the NextWindow/PrevWindow functions to use your client
list to find the window you want to raise, and then use
XRaiseWindow on the bugger.  Granted, this is first thing in the
morning, and I've not had a chance to look at bbcycle, much less my own
code in days, so I may very well be talking out of my ear.

Cheers....

* [07/20/01 11:57] Of all the gin joints in all the towns in all the world,
* Jeff Raven <[EMAIL PROTECTED]> walks into mine and says: 

> On Thu, Jul 19, 2001 at 02:48:37PM -0500, xOr wrote:
> > I've been puttin' some mad hours into this bbcycle tool, and
> > I'm pleased with my results so far. I've got it creating the
> > window/grabbing the blackbox style info and drawing using it,
> > etc. Props to the people who wrote all these great classes.
> >
> > Now, in order for me to make this useful, I need to integrate
> > it with bbkeys. so.. to the bbkeys guy: Do I need to write a
> > patch to add the new Cycle events to bbkeys, or can you provide
> > me with a codebase with them? Then, I am still left wondering,
> > how do I catch these events? Will a patch to blackbox itself
> > be required of some sort to pass these new events on? or do we
> > need to device an IPC solution of some sort? I'm guessing there
> > is a simple solution, I'm just not aware of it :-)
> 
> Well, I'm not the bbkeys guy, but here's my two cents...
> 
> This would probably be easier to do as a patch to bbkeys than as
> a separate program, if only because bbkeys already sets up and
> tracks most of the resources you need. The only thing that you
> might want that bbkeys doesn't already provide is a copy of the
> client window list in order of last focus (or whatever order it
> is that you wanted to cycle through the windows), plus a subclass
> of Basemenu for you to display them in.
> 
> You shouldn't need a patch to blackbox to do what you're planning;
> the existing protocol let's you set and raise the focus window.
> (For some reason the last time this came up I thought more might
> be needed of blackbox, but I'm fairly certain I was just being
> stupid.)
> 
> Of course, going this route means you'd have to understand at
> least some of the ins and outs of bbkeys, which is no small task
> in and of itself.
> 
> Jeff Raven
> 

-- 
----%<----------%<----
Jason Kasper (vanRijn)
bash$ :(){ :|:&};:
Numbers 6:24-26

Reply via email to