Re: FVWM: KDE-like taskbar or iconmanager behaviour

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 17 Feb 2002 01:51:49 +0000

On 16 Feb 2002 11:29:45 +0100, Denis Prost wrote:
>
> Could anyone help me to achieve the following common taskbar behaviour,
> either with FvwmTaskBar or FvwmIconMan :
>
> - when you click on the focused window button, the window is iconified
> - when you click on any other button, the window is deiconified if it was
> iconified, raised and focused.

Sorry, the behaviour you want is not common, it requires if-else syntax.
You may just bind these opposite actions to different mouse buttons.
Ok, one way to emulate if-else syntax is dynamically created functions:

*FvwmTaskBar: Action Click1 SwitchIconification

AddToFunc SwitchIconification
+ I DestroyFunc FuncIconifyFocused
+ I AddToFunc FuncIconifyFocused
+ I WindowId $w (Focused) + I Iconify true
+ I WindowId $w (!Focused, Iconic) MyActivateWindow
+ I FuncIconifyFocused

AddToFunc MyActivateWindow
+ I Iconify false
+ I Raise
+ I Focus

There probably will be if-else syntax in the future, but this works well.

Regards,
Mikhael.
--
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 Sat Feb 16 2002 - 19:52:11 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST