How to Kill Those Corners in Wmii 3.5

I recently upgraded to the latest recommended snapshot of wmii (wmii+ixp-20070516). All is great, but now I have these odd little corners (about 3 pixels) in the upper left and right corners of my screen. From reading the mailing lists, these are “layout boxes”. Honestly, I don’t know what that means, and I have not found a use for them. I almost always keep everything maximized.

Unfortunately, these little corners totally kill the “clean look” I liked about the wmii screenshots (yes, I’m picky). Furthermore, I was told I can’t get rid of them!

Never fear, I went into the source and killed the part that draws them, so they are gone for good.

Here’s the patch:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/cmd/wmii/column.c b/cmd/wmii/column.c
index 767326b..ca5dd0d 100644
--- a/cmd/wmii/column.c
+++ b/cmd/wmii/column.c
@@ -57,13 +57,8 @@ draw_pmap(Pixmap pm, GC gc, Bool color) {
                XSetForeground(blz.dpy, gc, 1);
        }

-       XFillPolygon(blz.dpy, pm, gc, pt, nelem(pt), Convex, CoordModeOrigin);
-
        if(color)
                XSetForeground(blz.dpy, gc, def.normcolor.border);
-
-       XDrawLines(blz.dpy, pm, gc, pt, nelem(pt), CoordModeOrigin);
-       XDrawRectangle(blz.dpy, pm, gc, pt[1].x, pt[1].y, 1, screen->rect.height);
 }

 void

To apply this, you’ll need the latest recommended snapshot, which at the time of this writing is wmii+ixp-20070516. Download snapshots here http://www.suckless.org/snaps/. Then go into the root of your wmii source directory and do:

1
2
wget http://scie.nti.st/dist/wmii.patch
patch -p1 < wmii.patch

Then “make” like normal.

Comments