FVWM: Bug in Recapture and Decor code

From: lar3ry gensch <gensch_at_zk3.dec.com>
Date: Fri, 17 Jan 1997 12:44:20 -0500

I've got two decors defined, using the following code in my .fvwm2rc
file:

#####################################################################
# Look and Feel (Styles and Decors)
#===================================================================#
#

DestroyFunc "RemoveAllButtons"
AddToFunc "RemoveAllButtons"
+ "I" Style "*" NoButton 0, NoButton 1, NoButton 2, NoButton 3
+ "I" Style "*" NoButton 4, NoButton 5, NoButton 6, NoButton 7
+ "I" Style "*" NoButton 8, NoButton 9


#=========
# Win95
#=========

DestroyDecor Win95
AddToDecor Win95
+ TitleStyle LeftJustified ActiveUp (Solid Navy -- flat) \
                ActiveDown (Solid Navy -- flat) \
                Inactive (Solid grey51 -- flat)
+ ButtonStyle 1 MiniIcon -- UseTitleStyle flat
+ ButtonStyle 2 Pixmap win95-close-full.xpm -- UseTitleStyle flat
+ ButtonStyle 4 Pixmap win95-maximize-full.xpm -- UseTitleStyle flat
+ ButtonStyle 6 Pixmap win95-minimize-full.xpm -- UseTitleStyle flat
+ BorderStyle Active -- HiddenHandles NoInset
+ BorderStyle Inactive -- HiddenHandles NoInset
+ WindowFont -adobe-helvetica-bold-r-*-120-*
+ HilightColor white grey60

DestroyFunc DecorWin95
AddToFunc DecorWin95
+ "I" RemoveAllButtons
+ "I" Style "*" UseDecor Win95, ForeColor Black
+ "I" Style "*" Button 1, Button 2, Button 4, Button 6
+ "I" MenuStyle Black grey75 grey40 \
                        -adobe-helvetica-medium-r-*-120-* mwm
+ "I" Exec xsetroot -solid cyan4
+ "I" Recapture

#=========
# mwm
#=========

DestroyDecor Mwm
AddToDecor Mwm
+ TitleStyle Centered
+ TitleStyle ActiveUp (Solid cyan4 -- Raised) \
                ActiveDown (Solid cyan4 -- flat) \
                Inactive (Solid grey51 -- Raised)
+ ButtonStyle Reset
+ ButtonStyle All -- UseTitleStyle
+ ButtonStyle 2 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 4 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1
+ WindowFont -adobe-helvetica-bold-r-*-120-*
+ HilightColor white cyan4

DestroyFunc DecorMwm
AddToFunc DecorMwm
+ "I" RemoveAllButtons
+ "I" Style "*" UseDecor Mwm, ForeColor Black
+ "I" Style "*" Button 1, Button 2, Button 4
+ "I" MenuStyle Black grey75 grey40 \
                        -adobe-helvetica-medium-r-*-120-* mwm
+ "I" Exec xsetroot -solid grey
+ "I" Recapture

#####################################################################

If I continually switch between the decors using the DecorWin95 and
DecorMwm function, little by little, FvwmButtons and Fvwm Pager will
start to disappear... it looks like they shrink by a pixel or two each
time I recapture. These two modules are run without titles or handles,
and that may have something to do with the problem.

This appears to be a bug; I haven't examined the recapture code in fvwm
to see what the cause is, but I thought I'd report this so that it will
be fixed before we go into 2.1.0.


By the way, fvwm-2.0.44 was worth waiting for... Way to go, Chuck, and
everybody else on fvwm-workers!

-- 
(void) lar3ry();                                      gensch_at_zk3.dec.com
     "Sometimes it happens.  People just explode.  Natural causes."
--
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 Jan 17 1997 - 11:55:56 GMT

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