Subject: FVWM: Fix for NoButton 0 Problem

From: Andrew Veliath <[email-masked]>
Date: Mon, 10 Feb 1997 12:35:26 -0500 (EST)

Here is a patch to fix it.

--
Andrew Veliath <[email-masked]>        http://www.rpi.edu/~veliaa
Finger for PGP Public Key
Key fingerprint =  51 56 5D 3E 51 43 8B 74  7C B2 E4 B6 84 8E 8B 08

--- ../../orig/fvwm-2.0.45/fvwm/style.c	Wed Jan 22 15:28:59 1997
+++ style.c	Mon Feb 10 12:23:28 1997
@@ -115,7 +115,9 @@
             restofline++;
           while(isspace(*restofline))restofline++;
 	  
-          on_buttons |= (1<<(butt-1));        
+          if (butt == 0) butt = 10;
+          if (butt > 0 && butt <= 10)
+              on_buttons |= (1<<(butt-1));        
         }
         else if(mystrncasecmp(restofline,"BorderWidth",11)==0)
         {
@@ -460,7 +462,9 @@
             restofline++;
           while(isspace(*restofline))restofline++;
 	  
-          off_buttons |= (1<<(butt-1));
+          if (butt == 0) butt = 10;
+          if (butt > 0 && butt <= 10)
+              off_buttons |= (1<<(butt-1));
         }
         else if(mystrncasecmp(restofline,"NOOLDECOR",9)==0)
         {
--
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 [email-masked].
To report problems, send mail to [email-masked].