Hi,

I think I found a bug in FvwmButtons. It affects title align code.
For every button you can define Title, and for every Title you can
define aligment using one of the option: Left, Right, Center, Side
What I found is that the meaning of Right and Center options are
swaped, so definig title like this:
        Title (Center) "Text"
gives you right justified title. However if you just left out the
options field (Center is default), then the title is centered correctly.
I've looked into the code, and I think I found the problem. I've even
made a patch, but I haven't tested it (I'm not sure about this
*flags|=... lines). Anyway here it is:

--- parse.c.orig        2005-10-27 09:53:48.916902808 +0200
+++ parse.c     2005-10-27 09:53:58.039632328 +0200
@@ -221,14 +221,14 @@
       *flags&=~b_TitleHoriz;
       *mask|=b_TitleHoriz;
       break;
-    case 1: /* Right */
+    case 1: /* Center */
       *flags&=~b_TitleHoriz;
-      *flags|=2;
+      *flags|=1;
       *mask|=b_TitleHoriz;
       break;
-    case 2: /* Center */
+    case 2: /* Right */
       *flags&=~b_TitleHoriz;
-      *flags|=1;
+      *flags|=2;
       *mask|=b_TitleHoriz;
       break;
     case 3: /* Side */

-- 
Greetings
Rafal Bisingier

Attachment: pgpZ9YogM0L1C.pgp
Description: PGP signature

Reply via email to