Subject: tiny patch - makes the resize/move frame simpler -- mwm-like ;)

From: Jakub Jasinski <[email-masked]>
Date: Wed, 17 Jun 1998 19:53:02 -0400

--- fvwm-2.0.46/fvwm/resize.c.orig      Wed Jun 17 18:21:41 1998
+++ fvwm-2.0.46/fvwm/resize.c   Wed Jun 17 19:23:04 1998
@@ -1,3 +1,4 @@
+/* Jakub Jasinski ([email-masked]) minor patch: resize frame
simplified */

 /****************************************************************************

  * This module is all original code
@@ -545,7 +546,7 @@
   static int lasty = 0;
   static int lastWidth = 0;
   static int lastHeight = 0;
-  XRectangle rects[5];
+  XRectangle rects[3];

   if (x == lastx && y == lasty && width == lastWidth && height ==
lastHeight)
     return;
@@ -565,15 +566,7 @@
       rects[2].y = lasty+2;
       rects[2].width = lastWidth-4;
       rects[2].height = lastHeight-4;
-      rects[3].x = lastx+3;
-      rects[3].y = lasty+3 + (lastHeight-6)/3;
-      rects[3].width = lastWidth-6;
-      rects[3].height = (lastHeight-6)/3;
-      rects[4].x = lastx+3 + (lastWidth-6)/3;
-      rects[4].y = lasty+3;
-      rects[4].width = (lastWidth-6)/3;
-      rects[4].height = (lastHeight-6);
-      XDrawRectangles(dpy,Scr.Root,Scr.DrawGC,rects,5);
+      XDrawRectangles(dpy,Scr.Root,Scr.DrawGC,rects,3);
     }

   lastx = x;
@@ -596,15 +589,7 @@
       rects[2].y = lasty+2;
       rects[2].width = lastWidth-4;
       rects[2].height = lastHeight-4;
-      rects[3].x = lastx+3;
-      rects[3].y = lasty+3 + (lastHeight-6)/3;
-      rects[3].width = lastWidth-6;
-      rects[3].height = (lastHeight-6)/3;
-      rects[4].x = lastx+3 + (lastWidth-6)/3;
-      rects[4].y = lasty+3;
-      rects[4].width = (lastWidth-6)/3;
-      rects[4].height = (lastHeight-6);
-      XDrawRectangles(dpy,Scr.Root,Scr.DrawGC,rects,1);
+      XDrawRectangles(dpy,Scr.Root,Scr.DrawGC,rects,3);
     }
 }

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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].