Okay.  When I get a chance, I'll take a quick look at the code for
bbpager to see if I can get a general idea of what's involved.  My X
programming is not that good, but this doesn't sound too painful.

I'm thinking about starting out with a program that raises (after
unshading and/or deiconifying).  After doing that, it should be easy
to generalize it to do just about anything if the window actions are
done the way I'd imagine that they are...

Ben


On Mon, 12 Jun 2000, "Sean 'Shaleh' Perry" wrote:
> On Mon, Jun 12, 2000 at 11:22:19AM -0400, Ben Tracy wrote:
> > Fellow blackboxers:
> > 
> > Is there a way to raise or deiconify a window from a script? 
> I've
> > set up my mail checker to put up an xdialog if the mail program
> is
> > already running, so I don't get several of them running at the
> same
> > time, but I thought it would be great if it would just bring it
> to
> > the front in that case... The question is, can it be done?
> > 
> 
> A C program could do it fairly easily.  I say C because to do this
> you need to
> read X atoms from the server -- which I believe is not functional
> in python /
> perl / shell.
> 
> Basically you read blackbox's window list atoms looking for the
> window you want
>  -- some fuzzy logic here because all you get is the window title. 
> Then you
>  send an X atom to blackbox telling it to raise it.  This is how
> bbpager works.
> 
> A wm shell a la eesh or whatever sawfish uses may be a little more
> difficult
> to create.
> 

Reply via email to