FVWM: Re: titlebutton pixmaps

From: Chris Taylor <shaggy_at_ctron.com>
Date: Fri, 19 Apr 1996 14:02:12 -0400 (EDT)

> if you specify 2 pixmaps, the second is the "pressed in"
> one, but you only see it while it's actually pressed in. Using
> FullPixmap removes the border, so this toggle ability that I was
> referring to would be all that would be needed to get what you want.

Not exactly. What's need is pixmaps for four button states:
    normal (not clicked-on), un-maximized
    depressed, un-maximized
    normal, maximized
    depressed, maximized

I suppose you could replace "maximized" with "sticky" or any other on/off
window state.

But... that leads to a bug in the way fvwm deals with button decorations: fvwm
assumes that minimize and maximize are always on buttons 4 and 2. Because of
this, three problems result:

    * Fvwm alters the appearance of buttons bound to maximize *only* when bound
      to button 2.
    * Fvwm won't alter the appearance of button 2 when not using the default
      buttonstyle for that button.
    * Fvwm always removes buttons 4 and 2 from transient windows, even if they
      aren't bound to minimize and maximize.

In my case, minimize and maximize are bound to buttons 8 and 6. Close is bound
to button 2. (I bind nothing to button 4.) As a result, decorations on my
transient windows don't make much sense: I end up with minimize and maximize
buttons on my transient windows. Minimize and maximize typically don't work
(and aren't needed) for transient windows. Because fvwm removes buttons 4 and
2, I can't close the window by clicking the close button.

Perhaps the code used to fiddle with the maximize button's appearance and
presence can be modified to handle a more general case? Maybe the code can look
at a button's bindings and change the button's appearance based on the binding
and whatever window state flags exist at the time. The code must already do
that to some extent for button 2. (In my case, this theoretical checking
wouldn't help: my maximize button is actually bound to a function, since I use
maximize with parameters in several places throughout my fvwmrc. That's outside
the scope of this problem, though.)

Chris Taylor / My views do not represent \ PGP public key available
shaggy_at_ctron.com \ those of Cabletron. / via keyserver or request

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Apr 19 1996 - 13:00:09 BST

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