Subject: Re: FvwmButtons swallowed apps get colorset 0

From: Dominik Vogt <[email-masked]>
Date: Wed, 1 Mar 2000 11:31:10 +0100

On Tue, Feb 29, 2000 at 04:24:04PM +0000, [email-masked] wrote:
> Configuration Information [Automatically generated, do not change]:
> uname output: SunOS tazmo 5.6 Generic_105181-15 sun4u sparc SUNW,Ultra-4
> Compiler: gcc
> Compilation CFLAGS: -g -O2
> prefix: /home/tim
> sysconfdir: /home/tim/etc
> libexecdir: /home/tim/libexec
> 
> FVWM Version: 2.3.16
> FVWM_CONFIGDIR: unset
> FVWM_MODULEDIR: /home/tim/libexec/fvwm/2.3.16
> FVWM_USERHOME: /home/tim/.X
> 
> Description:
> 	Swallowed app don't get the correct pixmap imposed on them
> 	from *FvwmButtonsColorset.  Instead they get colorset the pixmap
> 	from colorset 0.
> 
> Repeat-By:
> 
> *FvwmThemeColorset 0 TiledPixmap pixmap0.xpm
> *FvwmThemeColorset 1 TiledPixmap pixmap1.xpm
> 
> *FvwmButtonsColorset 1
> *FvwmButtonsColumns 1
> *FvwmButtons(1x1 Swallow (NoClose UseOld Respawn) oclock "Exec oclock")
> 
> This gets a swallowed oclock with a 3d relief from colorset 1, with the
> button (outside the oclock) pixmap from colorset 1 but the oclock itself
> has the pixmap from colorset 0.

Fixed.  The problem was that a colour set was applied to the swallowed
application at all.  I forgot to check if a colour set was specified
in one place, so the default was simply '0'.  Same bug as Mike Han
discovered in FvwmIconMan, but I used a separate flag to indicate
'no colour set' instead of '-1'.

Bye

Dominik ^_^

-- 
Dominik Vogt, Agilent Technologies, Dept. BVS
Herrenberger Str.130, 71034 Boeblingen, Germany
phone: 07031/464-4596, fax: 07031/464-3883, [email-masked]
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]