Re: FVWM: Clicking on taskbar icons to minimize windows. How to do it?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 14 Aug 2002 15:46:02 +0000

On 14 Aug 2002 19:52:44 +0800, Seng Huat Yeoh wrote:
>
> I'm trying to make my taskbar icons work like Windows 98 and up. The
> first click maximises the window and second click to minimize it.

Are you sure this is what Windows 98 does? Seems pretty crazy.
Or you mean the second click normalizes a window?
Anyway here is a 3 state window function:

  *FvwmTaskBar: Action Click1 MaximizeOrMinimizeOrNormalize

  DestroyFunc MaximizeOrMinimizeOrNormalize
  AddToFunc MaximizeOrMinimizeOrNormalize
  + I ThisWindow (Maximized, !Iconic) Iconify on
  + I ThisWindow (!Iconic) Maximize 100 -30p
  + I ThisWindow (!Maximized, Iconic) Iconify off
  + I ThisWindow (Maximized, Iconic) Maximize off

This is for 2.4.6+. There is another if-else solution for 2.5.x.
It is pretty tricky (but possible) to program if-else in 2.4.x.

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 Wed Aug 14 2002 - 10:47:21 BST

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