Subject: Patch to ``fix'' NoInset with FvwmBorders

From: Darren Stuart Embry <[email-masked]>
Date: Mon, 31 Jan 2000 21:56:35 -0500

If you set FVWMBorders and NoInset in a window style, the window
decorations still look inset.  I made a patch to hopefully fix
the problem against fvwm-2.3.13.  Here it is.  Have fun.

Darren

-- 
Darren Stuart Embry.  He's always right.  Except when he's wrong.
http://www.slug.louisville.edu/~dsembr01/
        ``I've driven in Connecticut - having imaginary roads would only
          improve things.'' -- former Useless Pages editor Steve Berlin
diff -bBcr fvwm-2.3.13.ORIG/fvwm/borders.c fvwm-2.3.13/fvwm/borders.c
*** fvwm-2.3.13.ORIG/fvwm/borders.c	Sun Jan 23 09:47:13 2000
--- fvwm-2.3.13/fvwm/borders.c	Mon Jan 31 17:59:50 2000
***************
*** 459,472 ****
      w_din = 1;
      /* w_trout + w_trin counts only as one pixel of border because they let one
       * pixel of the original colour shine through. */
!     sum = 6;
      trim = sum - t->boundary_width;
    }
    if (DFS_HAS_NO_INSET(*borderstyle))
    {
      w_shin = 0;
!     sum--;
!     trim--;
    }
    /* If the border is too thin to accomodate the standard look, we remove parts
     * of the border so that at least one pixel of the original colour is
--- 459,476 ----
      w_din = 1;
      /* w_trout + w_trin counts only as one pixel of border because they let one
       * pixel of the original colour shine through. */
!     sum = (w_dout + w_hiout + w_trout + w_trin + w_shin + w_din);
      trim = sum - t->boundary_width;
    }
    if (DFS_HAS_NO_INSET(*borderstyle))
    {
+     sum -= (w_shin + w_din + w_trin); /* added by dse */
+     trim -= (w_shin + w_din + w_trin); /* added by dse */
      w_shin = 0;
!     w_din = 0; /* added by dse */
!     w_trin = 0; /* added by dse */
!     /* sum--; */
!     /* trim--; */
    }
    /* If the border is too thin to accomodate the standard look, we remove parts
     * of the border so that at least one pixel of the original colour is