Hi together,

Last weekend I stucked a little bit writing a  function  for
the  taskbar which switches to a window if it is not visible
(or not on the current page) and which iconifies the  window
if it is on top on the current page (e.g. fully visible). 

I tried:

DestroyFunc TaskBarButton1
AddToFunc TaskBarButton1 I ThisWindow (!Visible) Function 
DeiconifyUnshadeFlipFocus
 + I ThisWindow (Visible) Iconify on

DestroyFunc DeiconifyUnshadeFlipFocus
AddToFunc DeiconifyUnshadeFlipFocus I Iconify off
 + I WindowShade off
 + I FlipFocus
 + I Raise

Assigning TaskBarButton1 to the taskbar button and pressing
it brings up the window iconifies it immediately.

I thought I might use UserStates to make it work but this
seemed to much for this simple requierment.

Any hints? Thanks in advance.

Regards, Uwe
--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to