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