Tux

...making Linux just a little more fun!

auto-lower a window in X?

Todd Blake [tbblake at gmail.com]


Thu, 27 Aug 2009 15:58:41 -0400

I've been working on some scripts recently that spawn extra windows, and kill them off for the purposes of displaying images. What I can't figure out is how to programatically lower a window after I've opened it, without delving deeply into some C programming against X that would necessitate a major learning curve.


Top    Back


Thomas Adam [thomas.adam22 at gmail.com]


Thu, 27 Aug 2009 21:10:26 +0100

2009/8/27 Todd Blake <tbblake@gmail.com>:

> I've been working on some scripts recently that spawn extra windows, and
> kill them off for the purposes of displaying images. What I can't figure
> out is how to programatically lower a window after I've opened it, without
> delving deeply into some C programming against X that would necessitate a
> major learning curve.

xwit is likely your friend here:

xwit -lower -names somewindowname

Of course, if you used a proper window manager such as FVWM this can be achieved canonically as:

DestroyModuleConfig FE:*
*FE: add_window "ThisWindow (SomeWindowName|OtherWindowName) Lower"
 
AddToFunc StartFunction I Module FvwmEvent FE

Which would cause windows with "SomeWindowName" or "OtherWindowName" as either their window name, resource or class to be matched and lowered.

Using recent FVWM 2.5.X version I added an "InitialMapCommand" style option, which reduces the above to:

Style SomeWindowName InitialMapCommand Lower

-- Thomas Adam


Top    Back


Carey Riley [crileyjm at gmail.com]


Thu, 27 Aug 2009 22:10:20 -0500

On Thu, Aug 27, 2009 at 03:58:41PM -0400, Todd Blake wrote:

> I've been working on some scripts recently that spawn extra windows, and
> kill them off for the purposes of displaying images.  What I can't figure
> out is how to programatically lower a window after I've opened it, without
> delving deeply into some C programming against X that would necessitate a
> major learning curve.

Is it bare X or is some window manager, such as TWM, involved?

-- 
                                    
My Profile:
[https://www.linkedin.com/in/careyriley]
Being informed is a right!
[https://www.wikileaks.org/]
--------------------------------------


Top    Back