Permalink
Browse files

Revert useless gap patch. it's far more useless than advertised.

  • Loading branch information...
1 parent ac6f111 commit 58166484d61d7012a47959fd4713ce892bcd9ab2 @falconindy committed Mar 7, 2010
Showing with 4 additions and 6 deletions.
  1. +0 −2 config.h
  2. +4 −4 dwm.c
View
@@ -14,15 +14,13 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
-static const unsigned int gappx = 4; /* gap pixel between windows */
/* tagging */
static const char *tags[] = { "web", "term", "foo", "vbox", "misc" };
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Chromium", NULL, NULL, 1 << 0, False, -1 },
- { "URxvt", NULL, NULL, 1 << 1, False, -1 },
{ "VirtualBox", NULL, NULL, 1 << 3, True, -1 },
{ "Dia", NULL, NULL, 1 << 4, True, -1 },
{ "Gimp", NULL, NULL, 1 << 4, True, -1 },
View
@@ -1336,10 +1336,10 @@ resize(Client *c, int x, int y, int w, int h, Bool interact) {
XWindowChanges wc;
if(applysizehints(c, &x, &y, &w, &h, interact)) {
- c->x = wc.x = x + gappx;
- c->y = wc.y = y + gappx;
- c->w = wc.width = w - 2 * gappx ;
- c->h = wc.height = h - 2 * gappx ;
+ c->x = wc.x = x;
+ c->y = wc.y = y;
+ c->w = wc.width = w;
+ c->h = wc.height = h;
wc.border_width = c->bw;
XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
configure(c);

0 comments on commit 5816648

Please sign in to comment.