Subject: FVWM: Changing decors without Recapture

From: Tim Phipps <[email-masked]>
Date: Mon, 23 Jun 1997 18:03:21 +0100 (BST)

I've started playing with decors and I'm getting confused.  I've created a menu 
that is intended to change the decors of all the windows on the scren without 
the visual disturbance of recapture.  Here's the RC stuff (Sorry about the line 
wrap):

AddToMenu menu_decor
+ "WM Style"	Title
+ "&Default"	decor_fvwm
+ "&Pixmap"	decor_pixmap

AddToFunc decor_fvwm	"I" DestroyDecor my_decor
+			"I" UpdateDecor my_decor

AddToFunc decor_pixmap	"I" DestroyDecor my_decor
+			"I" AddToDecor my_decor WindowFont BOLD_MEDIUM
+			"I" AddToDecor my_decor BorderStyle Active TiledPixmap 
pool.xpm -- HiddenHandles NoInset
+			"I" AddToDecor my_decor BorderStyle InActive TiledPixmap 
concrete.xpm -- HiddenHandles NoInset
+			"I" AddToDecor my_decor TitleStyle Height 16 -- Flat
+			"I" AddToDecor my_decor ButtonStyle 1 MiniIcon -- 
UseBorderStyle Sunk
+			"I" AddToDecor my_decor HilightColor FG TS
+			"I" UpdateDecor my_decor

Style "*" UseDecor my_decor

Here is what happens:
decor_fvwm works as expected.  All windows return to the default FVWM look.
decor_pixmap doesn't work as expected.  All windows remain with the FVWM look 
until a recapture is executed.  Even then the titlebars remain in the FVWM look 
until the window has been focused.

Am I doing the wrong thing here?
Tim Phipps.