Discussion:
FVWM: How to use StaysOnTop with WindowStyle?
m***@crosswire.com
2012-02-10 23:21:33 UTC
Permalink
Howdy,

I'm trying to bind a key so that I can make any given window stay on the
top layer, and then revert with another key binding. The purpose is for
integrating multiple windows during video screen captures. Most of the
following config snippet works as intended, except StaysOnTop. I've
tried to use "Layer 6" instead, I've also tried to use something like:

Style $[w.id] StaysOnTop

But that doesn't seem to work either. "Style <string> StaysOnTop"
appears to work, but that doesn't do what I need since the window being
nailed to the glass isn't a specific application, but whatever
application I happen to be making a video of.

Any ideas?

Thanks in advance!

####################################################

DestroyFunc MyFreeze
AddToFunc MyFreeze
+ I ThisWindow WindowStyle StaysOnTop
+ I ThisWindow WindowStyle Sticky
+ I ThisWindow WindowStyle !Title
+ I ThisWindow WindowStyle !Borders
+ I ThisWindow WindowStyle !Handles
+ I ThisWindow WindowStyle WindowListSkip
+ I UpdateStyles

DestroyFunc MyThaw
AddToFunc MyThaw
+ I ThisWindow DestroyWindowStyle
+ I UpdateStyles

Key F1 A A Function MyFreeze
Key F2 A A Function MyThaw
Thomas Adam
2012-02-10 23:29:45 UTC
Permalink
Post by m***@crosswire.com
Howdy,
I'm trying to bind a key so that I can make any given window stay on the
top layer, and then revert with another key binding. The purpose is for
I wrote this:

http://fvwm.org/documentation/faq/#3.30
Post by m***@crosswire.com
integrating multiple windows during video screen captures. Most of the
following config snippet works as intended, except StaysOnTop. I've
Style $[w.id] StaysOnTop
No -- styles don't work in this way. Substituting the window's ID here
would expand to this:

Style 69206050 StaysOnTop

Which would mean you'd need a window who matched "69206050". That's not
going to work.

Of course, it's really WindowStyle which internally uses the window's ID,
but that's a different story.
Post by m***@crosswire.com
But that doesn't seem to work either. "Style <string> StaysOnTop"
appears to work, but that doesn't do what I need since the window being
nailed to the glass isn't a specific application, but whatever
application I happen to be making a video of.
http://fvwm.org/documentation/faq/#3.30

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Loading...