I'd like to make FvwmIconMan and FvwmButtons be raised if the mouse goes over
them, and lowered when the mouse leaves them. My current attempt looks like
Module FvwmAuto 250 "Silent AutoRaiseFunction" "Silent AutoLowerFunction"
DestroyFunc AutoRaiseFunction
AddToFunc AutoRaiseFunction
+ I Current (FvwmIconMan) Raise
+ I Current (FvwmButtons) Raise
DestroyFunc AutoLowerFunction
AddToFunc AutoLowerFunction
+ I Current (FvwmIconMan) Lower
+ I Current (FvwmButtons) Lower
, but this doesn't work. When the mouse enters the FvwmIconMan window, I see
it briefly flashed to the front and then lowered again. I think the problem is
that AutoLowerFunction is being called for the window that's just been left,
but the current window by then is FvwmIconMan, so the lower action is applied
when I don't want it. Conversely, when I leave the window, by the time
AutoLowerFunction is called the current window isn't FvwmIconMan any longer, so
the condition doesn't match and nothing happens.
Is there a way of making the actions conditional on the window that was current
when the event was originally signalled? Or another trick that I'm missing?
Alternatively (and more effieciently!), can FvwmAuto be made to only handle
enter and leave events for particular windows?
Richard
--
Richard \\\ SuperH Core+Debug Architect /// .... At home ...
P. /// Richard.Curnow_at_st.com /// richard_at_rrbcurnow.freeuk.com
Curnow \\\ http://www.superh.com/ /// www.rrbcurnow.freeuk.com
Speaking for myself, not on behalf of SuperH
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Mar 26 2002 - 07:33:37 GMT