FVWM: Style-specific 'Mouse'

From: Nathan Froyd <nathan.froyd_at_rose-hulman.edu>
Date: Thu, 22 Jul 1999 12:31:47 -0500 (EST)

Neil Bird writes:
> I'm trying to get an 'iconise-all' button onto certain windows (e.g.,
> "Navigator"). It's farily simple to do this by having a generic Decor, and
> having a second identical one that's got an extra button, then using that
> decor on the relevant windows.
>
> But is there a way of specifying for, say, button 6, a different
> function for a different style? E.g.,
>
> Style "Navigator" Mouse 0 6 A All (Navigator) Iconify On
> Style "XTerm" Mouse 0 6 A All (XTerm) Iconify On
>
> ... would do it if Mouse were a style. I can't call a function upon the
> click and have /it/ sort it out, since the function would only have the
> window's ID, not its class.

What you could do instead is have Decor "Foo" contain a Button 6, and then
have the appropriate NoButton statements in your Style
definition. Admittedly, this doesn't solve the larger problem of changing
the function for each window. Your suggestion for extra variables in the
function definition does sound nice, though.
-- 
Nathan  |  froydnj_at_rose-hulman.edu  |  http://www.rose-hulman.edu/~froydnj/
Evolution is a million line computer program falling into place by accident.
--
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 Thu Jul 22 1999 - 12:37:31 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST