On 27 May 2004 15:15:09 -0600, jaimos_at_zensites.net wrote:
>
> On Thu, May 27, 2004 at 04:16:39PM -0400, Nicholas Paul Johnson wrote:
> >
> > I've revamped my .fvwm2rc as to make the borders big (and beautiful). My
> > only issue is that when I shade the window, it looks kind of dumb. Is
> > there any way to change the border/handle width settings of a window
> > depending on whether or not it is shaded?
>
> You can change the Style of windows based of its name, class or resource
> string, which can almost do the effect you are looking for....
> example
>
> AddToFunc FvwmShade
> + I WindowShade
> + I ThisWindow (Shaded) Style $[w.name] BorderWidth 0, HandleWidth 0
> + I ThisWindow (!Shaded) Style $[w.name] BorderWidth 5, HandleWidth 5
>
> you can replace $[w.name] with $[w.class] or $[w.resource], and this
> will make the shaded window have no border width, the downside to this
> is it will affect all windows of that name, class or resources, which
> may not be what ya want...
This function of course affects all windows with the same name/class
(think multiple xterms).
In 2.5.x, use "WindowStyle" instead of "Style $[w.name]" to avoid this.
> > On a similar note, I've been trying to get a titlebar double click to
> > un/shade a window. Why doesn't this work:
> >
> > #-------------------------.fvwm2rc-
> > DestroyFunc ShadeOnDblClick
> > AddToFunc ShadeOnDblClick
> > + "D" WindowShade
> >
> > Mouse 1 T A Function ShadeOnDblClick
> > #----------------------------------
This sample works without any problems for me. Is it possible, you define
something like "Mouse 0 TSFW A Something" later in the config?
Of course, I would extend this function to be more functional, like:
+ C Raise
+ M Move
+ H Move
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 Thu May 27 2004 - 19:52:07 BST