Problem when trying to autohide 2 or more apps

Hi,
i’m using this code:

DestroyFunc FuncAutoEnter
AddToFunc FuncAutoEnter
+ I Autohide HiddenConsole 500 250 W
+ I Autohide FvwmPager 500 250 E
+ I Autohide FvwmDock 500 250 S

AddToFunc Autohide
+ I ThisWindow ($0) Deschedule $[w.id]
+ I TestRc (!Match) Deschedule -$[w.id]
+ I ThisWindow ($0) ThisWindow (shaded) AutohideShow $1 $3
+ I TestRc (!Match) All ($0, !shaded) AutohideHide $2 $3

AddToFunc AutohideShow
+ I Schedule $0 -$[w.id] WindowShade $1 off
+ I Schedule $0 -$[w.id] Raise
+ I Schedule $0 -$[w.id] Deschedule $[w.id]
+ I Schedule $0 -$[w.id] Deschedule -$[w.id]

AddToFunc AutohideHide
+ I Schedule $0 $[w.id] WindowShade $1 on
+ I Schedule $0 $[w.id] Deschedule $[w.id]
+ I Schedule $0 $[w.id] Deschedule -$[w.id]

AddToFunc StartFunction
+ I Module FvwmAuto FvwmAutohide -menter FuncAutoEnter

and all of the 3 apps hide well BUT only one shows when i move the pointer on it (FvwmDock). I’ve noticed that it’s always the last i call in FuncAutoEnter that works well.

Any idea ?

Thank you :slight_smile:

Can you detail a little more what you want to happen in each case? Do you want to schedule the auto{hiding,raising} to be at the same time? Do you want all hidden windows to popup when the mouse enters into either one of them?

– Thomas Adam

I just want that when i move the cursor on one of those apps, the one i’ve pointed appears (not all of them, just this one). This actually doesn’t do that: just the Dock can raise, the 2 others stay hidden when i move on them… am i clear ? it 's difficult for me to explain in english.

thanks !

PS: i’m using fvwm 2.5.12

Ok,

I finally understand what you mean (sorry for the delay :stuck_out_tongue:). You want to change the following line:

+ I ThisWindow ($0) ThisWindow (shaded) AutohideShow $1 $3 

To:

+ I ThisWindow ($0, shaded) AutohideShow $1 $3 

In Function Autohide, and all should be well.

– Thomas Adam

I’m having the same exact problem as the original poster, and this fix doesn’t seem to solve it. Any other suggestions?
Thanks,
Mike

That’s right, this doesn’t fix the problem for me too…

I’ve found the solution ! :slight_smile:

# The autohiding functions
AddToFunc autohide
+ I ThisWindow ($0) Deschedule $[w.id]
+ I ThisWindow ($0) ThisWindow (shaded) AutohideShow $1 $3
+ I TestRc (!Match) All ($0, !shaded) autohide_hide $2 $3

AddToFunc AutohideShow
+ I Schedule $0 -$[w.id] WindowShade $1 off
+ I Schedule $0 -$[w.id] Raise
+ I Schedule $0 -$[w.id] Deschedule $[w.id]

AddToFunc autohide_hide
+ I Schedule $0 $[w.id] WindowShade $1 on
+ I Schedule $0 $[w.id] Deschedule $[w.id]

Thanks thomas_adam for your help !

Thanks, that works!
-Mike

I was having this same problem and have already spent a few hours having a headache over this… :cry: becuase I couldn’t recognize what the problem was … so i just kept rechecking everything :cry:

But the above solution finally worked!! :smiley: Phew and thanks to Comete!

Suggestion/or tell me whom to tell, or tell me how to do it myself: Update the FAQ with the above solution. Coz I am pretty sure future fvwm users would go through the same grind.

Which FAQ? If it’s the main FVWM FAQ, good luck. Ask on the FVWM mailing list if you want to try to get it updated.

– Thomas Adam