...making Linux just a little more fun!
Todd Blake [tbblake at 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.
Thomas Adam [thomas.adam22 at gmail.com]
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
Carey Riley [crileyjm at gmail.com]
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/] --------------------------------------