Subject: Off-by-one error in Shading

From: [email-masked]
Date: Tue, 23 Feb 1999 18:13:29 -0600 (CST)

Full_Name: Matthias Clasen
Version: 2.2
CVS_Date: 
OS: RedHat Linux 5.2 
X_Server: XFree86 3.3.2
Submission from: (NULL) (132.230.142.6)

Shading a window decorated with FvwmBorder style leaves a 
1 pixel high region of the window visible. This doesn't occur
with MwmBorder.

Fix:

--- builtins.c.orig	Wed Jan 20 21:42:51 1999
+++ builtins.c	Wed Jan 20 21:44:06 1999
@@ -424,7 +424,7 @@
 		   tmp_win->frame_x,
 		   tmp_win->frame_y,
 		   tmp_win->frame_width,
-		   tmp_win->title_height + tmp_win->boundary_width,
+		   tmp_win->Shading a window decorated with FvwmBorder style leaves a 
1 pixel high region of the window visible. This doesn't occur
with MwmBorder.

Fix:

--- builtins.c.orig	Wed Jan 20 21:42:51 1999
+++ builtins.c	Wed Jan 20 21:44:06 1999
@@ -424,7 +424,7 @@
 		   tmp_win->frame_x,
 		   tmp_win->frame_y,
 		   tmp_win->frame_width,
-		   tmp_win->title_height + tmp_win->boundary_width,
+		   tmp_win->title_height + tmp_win->boundary_width - tmp_win->bw,
 		   False);
         BroadcastPacket(M_WINDOWSHADE, 3,
                         tmp_win->w, tmp_win->frame, (unsigned
long)tmp_win);
title_height + tmp_win->boundary_width - tmp_win->bw,
 		   False);
         BroadcastPacket(M_WINDOWSHADE, 3,
                         tmp_win->w, tmp_win->frame, (unsigned
long)tmp_win);

--
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]