I’m doing some autohiding (I read the FAQ) like this:
AddToFunc autohide_1
+ I ThisWindow ($0) WindowShade off
+ I TestRc (!1) All ($0, !shaded ) WindowShade $1
AddToFunc autohide_2
+ I ThisWindow (!$0) All ($0, !shaded) WindowShade $1
AddToFunc enter_handler
+ I autohide_1 FvwmButtons S
+ I autohide_2 FvwmPager E
autohide_1 works normally: FvwmButtons unshades when you move the mouse over it and shades when you leave the window. autohide_2 should only shade the window (FvwmPager) when I leave it. The unshading is done manually by clicking the windowframe (it already works).
Q: How do I test if the mouse pointer has left the FvwmPager window (ie. the pointer is on the root window or on some other window). Now it doesn’t recognize if the pointer is on root window. Somehow I should combine ThisWindow and TestRc but I have no idea how.