jokerboy avatar jokerboy committed d9add75

updates

Comments (0)

Files changed (21)

01-dwm-6.0-pertag2.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-23 21:12:49.000000000 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.896900806 +0300
+--- a/dwm.c	2012-07-08 10:45:53.000000000 +0300
++++ b/dwm.c	2012-07-17 19:46:39.469072272 +0300
 @@ -127,8 +127,6 @@ typedef struct {
  
  struct Monitor {
  		}
  		pop(c);
  	}
-@@ -645,17 +664,31 @@ configurerequest(XEvent *e) {
+@@ -650,17 +669,31 @@ configurerequest(XEvent *e) {
  Monitor *
  createmon(void) {
  	Monitor *m;
  	return m;
  }
  
-@@ -728,9 +761,9 @@ drawbar(Monitor *m) {
+@@ -733,9 +766,9 @@ drawbar(Monitor *m) {
  	}
  	dc.x = 0;
  	for(i = 0; i < LENGTH(tags); i++) {
  		drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
  		           occ & 1 << i, urg & 1 << i, col);
  		dc.x += dc.w;
-@@ -1030,7 +1063,7 @@ grabkeys(void) {
+@@ -1035,7 +1068,7 @@ grabkeys(void) {
  
  void
  incnmaster(const Arg *arg) {
  	arrange(selmon);
  }
  
-@@ -1571,7 +1604,7 @@ setlayout(const Arg *arg) {
+@@ -1576,7 +1609,7 @@ setlayout(const Arg *arg) {
  	if(!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
  		selmon->sellt ^= 1;
  	if(arg && arg->v)
  	strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
  	if(selmon->sel)
  		arrange(selmon);
-@@ -1586,10 +1619,10 @@ setmfact(const Arg *arg) {
+@@ -1591,10 +1624,10 @@ setmfact(const Arg *arg) {
  
  	if(!arg || !selmon->lt[selmon->sellt]->arrange)
  		return;
  	arrange(selmon);
  }
  
-@@ -1725,13 +1758,13 @@ tile(Monitor *m) {
+@@ -1730,13 +1763,13 @@ tile(Monitor *m) {
  	if(n == 0)
  		return;
  
  			resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), False);
  			my += HEIGHT(c);
  		}
-@@ -1765,13 +1798,24 @@ togglefloating(const Arg *arg) {
+@@ -1770,13 +1803,24 @@ togglefloating(const Arg *arg) {
  
  void
  toggletag(const Arg *arg) {
  		focus(NULL);
  		arrange(selmon);
  	}
-@@ -2065,11 +2109,26 @@ updatewmhints(Client *c) {
+@@ -2082,11 +2126,26 @@ updatewmhints(Client *c) {
  
  void
  view(const Arg *arg) {
  	focus(NULL);
  	arrange(selmon);
  }
-@@ -2148,6 +2207,32 @@ zoom(const Arg *arg) {
+@@ -2165,6 +2224,32 @@ zoom(const Arg *arg) {
  	pop(c);
  }
  

02-dwm-6.0-push.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.906900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.906900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.499072274 +0300
++++ b/dwm.c	2012-07-17 19:46:39.503072274 +0300
 @@ -264,6 +264,9 @@ static int xerrordummy(Display *dpy, XEr
  static int xerrorstart(Display *dpy, XErrorEvent *ee);
  static void zoom(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2233,6 +2236,65 @@ bstack(Monitor *m) {
+@@ -2250,6 +2253,65 @@ bstack(Monitor *m) {
  		}
  }
  

03-dwm-6.0-cycle.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.916900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.926900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.514072275 +0300
++++ b/dwm.c	2012-07-17 19:46:39.517072275 +0300
 @@ -267,6 +267,9 @@ static void bstack(Monitor *m);
  static Client *prevtiled(Client *c);
  static void pushup(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2296,6 +2299,42 @@ pushdown(const Arg *arg) {
+@@ -2313,6 +2316,42 @@ pushdown(const Arg *arg) {
  }
  
  int

04-dwm-6.0-gaplessgrid.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.936900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.936900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.538072277 +0300
++++ b/dwm.c	2012-07-17 19:46:39.541072277 +0300
 @@ -270,6 +270,7 @@ static void pushdown(const Arg *arg);
  static void cycle(const Arg *arg);
  static int shifttag(int dist);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2334,6 +2335,40 @@ tagcycle(const Arg *arg) {
+@@ -2351,6 +2352,40 @@ tagcycle(const Arg *arg) {
  	view(&a);
  }
  

05-dwm-6.0-pidgin.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.946900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.956900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.559072278 +0300
++++ b/dwm.c	2012-07-17 19:46:39.563072278 +0300
 @@ -271,6 +271,7 @@ static void cycle(const Arg *arg);
  static int shifttag(int dist);
  static void tagcycle(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2368,6 +2369,56 @@ gaplessgrid(Monitor *m) {
+@@ -2385,6 +2386,56 @@ gaplessgrid(Monitor *m) {
  		}
  	}
  }

06-dwm-6.0-monocle_count.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.966900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.966900806 +0300
-@@ -760,6 +760,7 @@ drawbar(Monitor *m) {
+--- a/dwm.c	2012-07-17 19:46:39.578072279 +0300
++++ b/dwm.c	2012-07-17 19:46:39.582072279 +0300
+@@ -765,6 +765,7 @@ drawbar(Monitor *m) {
  	int x;
  	unsigned int i, occ = 0, urg = 0;
  	unsigned long *col;
  	Client *c;
  
  	for(c = m->clients; c; c = c->next) {
-@@ -776,6 +777,14 @@ drawbar(Monitor *m) {
+@@ -781,6 +782,14 @@ drawbar(Monitor *m) {
  		           occ & 1 << i, urg & 1 << i, col);
  		dc.x += dc.w;
  	}
  	dc.w = blw = TEXTW(m->ltsymbol);
  	drawtext(m->ltsymbol, dc.norm, False);
  	dc.x += dc.w;
-@@ -1236,14 +1245,8 @@ maprequest(XEvent *e) {
+@@ -1241,14 +1250,8 @@ maprequest(XEvent *e) {
  
  void
  monocle(Monitor *m) {

07-dwm-6.0-monocle_borderless.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.976900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.986900806 +0300
-@@ -1406,7 +1406,11 @@ resizeclient(Client *c, int x, int y, in
+--- a/dwm.c	2012-07-17 19:46:39.598072280 +0300
++++ b/dwm.c	2012-07-17 19:46:39.602072281 +0300
+@@ -1411,7 +1411,11 @@ resizeclient(Client *c, int x, int y, in
  	c->oldy = c->y; c->y = wc.y = y;
  	c->oldw = c->w; c->w = wc.width = w;
  	c->oldh = c->h; c->h = wc.height = h;

08-dwm-6.0-clicktofocus.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:55.996900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:55.996900806 +0300
-@@ -863,6 +863,8 @@ drawtext(const char *text, unsigned long
+--- a/dwm.c	2012-07-17 19:46:39.615072281 +0300
++++ b/dwm.c	2012-07-17 19:46:39.619072282 +0300
+@@ -868,6 +868,8 @@ drawtext(const char *text, unsigned long
  
  void
  enternotify(XEvent *e) {
  	Client *c;
  	Monitor *m;
  	XCrossingEvent *ev = &e->xcrossing;
-@@ -1253,6 +1255,8 @@ monocle(Monitor *m) {
+@@ -1258,6 +1260,8 @@ monocle(Monitor *m) {
  
  void
  motionnotify(XEvent *e) {

09-dwm-6.0-viewontag.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.006900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.006900806 +0300
-@@ -1747,6 +1747,8 @@ tag(const Arg *arg) {
+--- a/dwm.c	2012-07-17 19:46:39.635072283 +0300
++++ b/dwm.c	2012-07-17 19:46:39.639072283 +0300
+@@ -1752,6 +1752,8 @@ tag(const Arg *arg) {
  		selmon->sel->tags = arg->ui & TAGMASK;
  		focus(NULL);
  		arrange(selmon);

10-dwm-6.0-scratchpad.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.026900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.026900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.657072284 +0300
++++ b/dwm.c	2012-07-17 19:46:39.661072284 +0300
 @@ -272,6 +272,7 @@ static int shifttag(int dist);
  static void tagcycle(const Arg *arg);
  static void gaplessgrid(Monitor *m);
  /* compile-time check if all tags fit into an unsigned int bit array. */
  struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
  
-@@ -1196,6 +1199,14 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1201,6 +1204,14 @@ manage(Window w, XWindowAttributes *wa)
  	           && (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ? bh : c->mon->my);
  	c->bw = borderpx;
  
  	wc.border_width = c->bw;
  	XConfigureWindow(dpy, w, CWBorderWidth, &wc);
  	XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
-@@ -2433,6 +2444,28 @@ pidgin(Monitor *m) {
+@@ -2450,6 +2461,28 @@ pidgin(Monitor *m) {
  	}
  }
  

11-dwm-6.0-togglemax.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.036900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.036900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.859072297 +0300
++++ b/dwm.c	2012-07-17 19:46:39.865072297 +0300
 @@ -273,6 +273,7 @@ static void tagcycle(const Arg *arg);
  static void gaplessgrid(Monitor *m);
  static void pidgin(Monitor *m);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2466,6 +2467,38 @@ togglescratch(const Arg *arg) {
+@@ -2483,6 +2484,38 @@ togglescratch(const Arg *arg) {
  		spawn(arg);
  }
  

12-dwm-6.0-autoresize.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.056900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.056900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.896072299 +0300
++++ b/dwm.c	2012-07-17 19:46:39.901072299 +0300
 @@ -91,7 +91,7 @@ struct Client {
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;
  	Client *next;
  	Client *snext;
  	Monitor *mon;
-@@ -656,6 +656,8 @@ configurerequest(XEvent *e) {
+@@ -661,6 +661,8 @@ configurerequest(XEvent *e) {
  				configure(c);
  			if(ISVISIBLE(c))
  				XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
  		}
  		else
  			configure(c);
-@@ -1722,7 +1724,12 @@ showhide(Client *c) {
+@@ -1727,7 +1729,12 @@ showhide(Client *c) {
  	if(!c)
  		return;
  	if(ISVISIBLE(c)) { /* show clients top down */

13-dwm-6.0-increase_mfact_limit.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.066900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.076900806 +0300
-@@ -1653,7 +1653,7 @@ setmfact(const Arg *arg) {
+--- a/dwm.c	2012-07-17 19:46:39.914072300 +0300
++++ b/dwm.c	2012-07-17 19:46:39.919072300 +0300
+@@ -1658,7 +1658,7 @@ setmfact(const Arg *arg) {
  	if(!arg || !selmon->lt[selmon->sellt]->arrange)
  		return;
  	f = arg->f < 1.0 ? arg->f + selmon->mfacts[selmon->curtag] : arg->f - 1.0;

14-dwm-6.0-remember-tags.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.086900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.086900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.942072302 +0300
++++ b/dwm.c	2012-07-17 19:46:39.946072302 +0300
 @@ -63,6 +63,7 @@ enum { NetSupported, NetWMName, NetWMSta
         NetWMFullscreen, NetActiveWindow, NetWMWindowType,
         NetWMWindowTypeDialog, NetClientList, NetLast };     /* EWMH atoms */
  static Bool running = True;
  static Cursor cursor[CurLast];
  static Display *dpy;
-@@ -1172,6 +1174,10 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1177,6 +1179,10 @@ manage(Window w, XWindowAttributes *wa)
  	Client *c, *t = NULL;
  	Window trans = None;
  	XWindowChanges wc;
  
  	if(!(c = calloc(1, sizeof(Client))))
  		die("fatal: could not malloc() %u bytes\n", sizeof(Client));
-@@ -1184,7 +1190,13 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1189,7 +1195,13 @@ manage(Window w, XWindowAttributes *wa)
  	else {
  		c->mon = selmon;
  		applyrules(c);
  	/* geometry */
  	c->x = c->oldx = wa->x;
  	c->y = c->oldy = wa->y;
-@@ -1687,6 +1699,7 @@ setup(void) {
+@@ -1692,6 +1704,7 @@ setup(void) {
  	netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
  	netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
  	netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
  	/* init cursors */
  	cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
  	cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
-@@ -1764,6 +1777,7 @@ void
+@@ -1769,6 +1782,7 @@ void
  tag(const Arg *arg) {
  	if(selmon->sel && arg->ui & TAGMASK) {
  		selmon->sel->tags = arg->ui & TAGMASK;
  		focus(NULL);
  		arrange(selmon);
  		if(viewontag)
-@@ -1856,6 +1870,7 @@ toggletag(const Arg *arg) {
+@@ -1861,6 +1875,7 @@ toggletag(const Arg *arg) {
  		}
  		selmon->sel->tags = newtags;
  		selmon->lt[selmon->sellt] = selmon->lts[selmon->curtag];
  		focus(NULL);
  		arrange(selmon);
  	}
-@@ -2506,6 +2521,12 @@ togglemax(const Arg *arg) {
+@@ -2523,6 +2538,12 @@ togglemax(const Arg *arg) {
  	}
  }
  

15-dwm-6.0-centred-floating.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.096900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.106900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.965072303 +0300
++++ b/dwm.c	2012-07-17 19:46:39.969072304 +0300
 @@ -92,7 +92,7 @@ struct Client {
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;
  			c->tags |= r->tags;
  			for(m = mons; m && m->num != r->monitor; m = m->next);
  			if(m)
-@@ -1198,8 +1201,14 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1203,8 +1206,14 @@ manage(Window w, XWindowAttributes *wa)
  	}
  	settagsatom(c->win, c->tags);
  	/* geometry */

16-dwm-6.0-focusurgent.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.116900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.116900806 +0300
+--- a/dwm.c	2012-07-17 19:46:39.982072304 +0300
++++ b/dwm.c	2012-07-17 19:46:39.986072305 +0300
 @@ -277,6 +277,7 @@ static void pidgin(Monitor *m);
  static void togglescratch(const Arg *arg);
  static void togglemax(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2536,6 +2537,32 @@ settagsatom(Window w, unsigned int tags)
+@@ -2553,6 +2554,32 @@ settagsatom(Window w, unsigned int tags)
  	                PropModeReplace, (unsigned char*)&tags, 1);
  }
  

17-dwm-6.0-statuscolors.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.126900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.136900806 +0300
+--- a/dwm.c	2012-07-17 19:46:40.000072306 +0300
++++ b/dwm.c	2012-07-17 19:46:40.004072306 +0300
 @@ -55,6 +55,7 @@
  #define HEIGHT(X)               ((X)->h + 2 * (X)->bw)
  #define TAGMASK                 ((1 << LENGTH(tags)) - 1)
  static void enternotify(XEvent *e);
  static void expose(XEvent *e);
  static void focus(Client *c);
-@@ -783,10 +784,9 @@ drawbar(Monitor *m) {
+@@ -788,10 +789,9 @@ drawbar(Monitor *m) {
  	dc.x = 0;
  	for(i = 0; i < LENGTH(tags); i++) {
  		dc.w = TEXTW(tags[i].name);
  		dc.x += dc.w;
  	}
  	if(m->lt[m->sellt]->arrange == monocle) {
-@@ -797,30 +797,30 @@ drawbar(Monitor *m) {
+@@ -802,30 +802,30 @@ drawbar(Monitor *m) {
  			s = a;
  		snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d/%d]", s, a);
  	}
  	}
  	XCopyArea(dpy, dc.drawable, m->barwin, dc.gc, 0, 0, m->ww, bh, 0, 0);
  	XSync(dpy, False);
-@@ -835,10 +835,34 @@ drawbars(void) {
+@@ -840,10 +840,34 @@ drawbars(void) {
  }
  
  void
  	x = (dc.font.ascent + dc.font.descent + 2) / 4;
  	if(filled)
  		XFillRectangle(dpy, dc.drawable, dc.gc, dc.x+1, dc.y+1, x+1, x+1);
-@@ -847,17 +871,17 @@ drawsquare(Bool filled, Bool empty, Bool
+@@ -852,17 +876,17 @@ drawsquare(Bool filled, Bool empty, Bool
  }
  
  void
  	x = dc.x + (h / 2);
  	/* shorten text if necessary */
  	for(len = MIN(olen, sizeof buf); len && textnw(text, len) > dc.w - h; len--);
-@@ -866,7 +890,7 @@ drawtext(const char *text, unsigned long
+@@ -871,7 +895,7 @@ drawtext(const char *text, unsigned long
  	memcpy(buf, text, len);
  	if(len < olen)
  		for(i = len; i && i > len - 3; buf[--i] = '.');
  	if(dc.font.set)
  		XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len);
  	else
-@@ -918,7 +942,7 @@ focus(Client *c) {
+@@ -923,7 +947,7 @@ focus(Client *c) {
  		detachstack(c);
  		attachstack(c);
  		grabbuttons(c, True);
  		setfocus(c);
  	}
  	else {
-@@ -1234,7 +1258,7 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1239,7 +1263,7 @@ manage(Window w, XWindowAttributes *wa)
  		c->tags &= TAGMASK;
  	wc.border_width = c->bw;
  	XConfigureWindow(dpy, w, CWBorderWidth, &wc);
  	configure(c); /* propagates border_width, if size doesn't change */
  	updatewindowtype(c);
  	updatesizehints(c);
-@@ -1715,12 +1739,11 @@ setup(void) {
+@@ -1720,12 +1744,11 @@ setup(void) {
  	cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
  	cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
  	/* init appearance */
  	dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen));
  	dc.gc = XCreateGC(dpy, root, 0, NULL);
  	XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
-@@ -1804,13 +1827,25 @@ tagmon(const Arg *arg) {
+@@ -1809,13 +1832,25 @@ tagmon(const Arg *arg) {
  
  int
  textnw(const char *text, unsigned int len) {
  }
  
  void
-@@ -1902,7 +1937,7 @@ unfocus(Client *c, Bool setfocus) {
+@@ -1907,7 +1942,7 @@ unfocus(Client *c, Bool setfocus) {
  	if(!c)
  		return;
  	grabbuttons(c, False);
  	if(setfocus) {
  		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
  		XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
-@@ -2162,8 +2197,11 @@ updatewmhints(Client *c) {
+@@ -2179,8 +2214,11 @@ updatewmhints(Client *c) {
  			wmh->flags &= ~XUrgencyHint;
  			XSetWMHints(dpy, c->win, wmh);
  		}

18-dwm-6.0-save_floats.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-24 11:03:56.146900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.146900806 +0300
+--- a/dwm.c	2012-07-17 19:46:40.016072307 +0300
++++ b/dwm.c	2012-07-17 19:46:40.020072307 +0300
 @@ -90,6 +90,7 @@ struct Client {
  	float mina, maxa;
  	int x, y, w, h;
  
  /* variables */
  static const char broken[] = "broken";
-@@ -1263,6 +1265,7 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1268,6 +1270,7 @@ manage(Window w, XWindowAttributes *wa)
  	updatewindowtype(c);
  	updatesizehints(c);
  	updatewmhints(c);
  	XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
  	grabbuttons(c, False);
  	if(!c->isfloating)
-@@ -1680,10 +1683,18 @@ setfullscreen(Client *c, Bool fullscreen
+@@ -1685,10 +1688,18 @@ setfullscreen(Client *c, Bool fullscreen
  
  void
  setlayout(const Arg *arg) {
  	strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
  	if(selmon->sel)
  		arrange(selmon);
-@@ -1890,8 +1901,10 @@ togglefloating(const Arg *arg) {
+@@ -1895,8 +1906,10 @@ togglefloating(const Arg *arg) {
  		return;
  	selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
  	if(selmon->sel->isfloating)
  	arrange(selmon);
  }
  
-@@ -2601,6 +2614,14 @@ focusurgent(const Arg *arg) {
+@@ -2618,6 +2631,14 @@ focusurgent(const Arg *arg) {
  	}
  }
  

19-dwm-6.0-hasborder.diff

-Homepage: http://hg.punctweb.ro
-
---- a/dwm.c	2012-06-24 11:03:56.156900806 +0300
-+++ b/dwm.c	2012-06-24 11:03:56.166900806 +0300
-@@ -94,7 +94,7 @@ struct Client {
- 	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
- 	int bw, oldbw;
- 	unsigned int tags;
--	Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, needresize, iscentred;
-+	Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, needresize, iscentred, hasborder;
- 	Client *next;
- 	Client *snext;
- 	Monitor *mon;
-@@ -165,6 +165,7 @@ typedef struct {
- 	unsigned int tags;
- 	Bool isfloating;
- 	Bool iscentred;
-+	Bool hasborder;
- 	int monitor;
- } Rule;
- 
-@@ -334,6 +335,7 @@ applyrules(Client *c) {
- 	/* rule matching */
- 	c->isfloating = c->tags = 0;
- 	c->iscentred = 1;
-+	c->hasborder = 1;
- 	XGetClassHint(dpy, c->win, &ch);
- 	class    = ch.res_class ? ch.res_class : broken;
- 	instance = ch.res_name  ? ch.res_name  : broken;
-@@ -346,6 +348,7 @@ applyrules(Client *c) {
- 		{
- 			c->isfloating = r->isfloating;
- 			c->iscentred = r->iscentred;
-+			c->hasborder = r->hasborder;
- 			c->tags |= r->tags;
- 			for(m = mons; m && m->num != r->monitor; m = m->next);
- 			if(m)
-@@ -1248,7 +1251,7 @@ manage(Window w, XWindowAttributes *wa)
- 	/* only fix client y-offset, if the client center might cover the bar */
- 	c->y = MAX(c->y, ((c->mon->by == c->mon->my) && (c->x + (c->w / 2) >= c->mon->wx)
- 	           && (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ? bh : c->mon->my);
--	c->bw = borderpx;
-+	c->bw = c->hasborder ? borderpx : 0;
- 
- 	if(!strcmp(c->name, scratchpadname)) {
- 		c->mon->tagset[c->mon->seltags] |= c->tags = scratchtag;
-dwm_patch=${dwm_patch:-1}
+#Homepage: http://hg.punctweb.ro
 
 pkgname=dwm
 pkgver=6.0
         "15-${pkgname}-${pkgver}-centred-floating.diff"
         "16-${pkgname}-${pkgver}-focusurgent.diff"
         "17-${pkgname}-${pkgver}-statuscolors.diff"
-        "18-${pkgname}-${pkgver}-save_floats.diff"
-        "19-${pkgname}-${pkgver}-hasborder.diff")
-sha256sums=('dd933101f2108019a9aa4b117ed6137077e2292791f11c348caf4431ea84326c'
-            'd1da36682d749580c0d7a3216f3d61b84b37de18b06da694269b3d9a637bdc05'
-            '0dd29c9dc647312fb98445f64b0434fe063fd3327848e1c26050c689a95cb4e8'
-            'b2e7d373ae9c4fc78d4367af115283675269458b1d9578cc185827d108916806'
-            'aab3e12f450602b1ffa243e22f64b12f954ab0d1f8982e9cc831111f8b763261'
-            '85c6ed2f303b85d94f6314100cd3d8e3247b461e1e8d96f4a61c4dac8333ca6f'
-            '71a29f0c006c33814ec5f087b2ea7a1335cffad1034bd95984076a4ee161b6fc'
-            'bcd8478adf8b9b14b006286411cb9c0d8508b1fa1cd5f7b4f920249577d1400c'
-            'aac869dc6fb2dd08f26d40aaddf10d461ab8dfa2ff5546ca09266153920a1714'
-            'fe4042782f98ca296bcd434e89ea43ff80abec746f8ccb0a5668fa2e3c4ddeee'
-            'b60f5adadb448785d4ee84edb34a2421f200bad1b64f166b6043a5b96749ddd4'
-            '10b36d6d36570881e4504af50fcfcc3fa6356cdb0e5ecf627dfca84bab84eb64'
-            '1caeee472b3440b9c47aed57ab46e1bbb0408e2148e2383e4941cd79d8e86d7a'
-            'a159d17c61d29b8607c3857bea1e9edd011f82b8a463abe15847f54a81f5498a'
-            '61354392e2737506924cce85fce25c540bb9404bc63407266a1e79d5b12ddead'
-            '0d19e5309af5e3b04810b6dea214da206cf7736816e29aa23bd073b0465842cd'
-            'b1cd0f32fae0425ec49a02cffb8a64cde427d8a03201400cb1758d60763caf2d'
-            '7bd1a03bec1e30813d74540161b8cae47b0ee610bb43930f5b4e689acb3af696'
-            'da6d519c6ce95eb6517d9b88d2338ff6cdf3ef5f8c46dbc5136eab7ebaef8712'
-            '6114f2d15954b2179ef2487b78a43bea94361a6c35561699f905e35493cff536'
-            '68a79688b05fe97e4630ce89d28a5872af9ae91b8a1ee6d2a790cdda1c550b9c')
+        "18-${pkgname}-${pkgver}-save_floats.diff")
+sha256sums=('bb5c4bb7ba052a5498118eeb571165997f7dae62580c1be1a5cdf11e03bc8127'
+            '9c93657357f98a66490ed34e4593b9f3a9e2e5784529f70c75e0506ae7f81d76'
+            'e670e37715979260a320dc79017d281d033b065da35d2fc7d40857902af94433'
+            'd53eb38f77f0d6b5f183035dc17dbc07859fd8242876facf4056bbe4a0e8d1fb'
+            '7dcfcb01347a7eed710f98848796699b7c01deefb1011eb4201ac2b3d224046f'
+            '9870a55ab0ed22ce2b677746b3cd6b96ebb05f84d0a6d015b5c616fc0585c73d'
+            '9ecc1b121dbf31af0ace601398972dad93b27cdbe6e3648ef4efe66586386e0b'
+            'ae36b15520e761f1f3aa443a66c17abb2484c8ab8476a314726522ec55d1ea7c'
+            'fef9afae03f730f3091b0d25fed10b64f59f109f9a12c4e046a9f3091753ef4f'
+            '57ee899e602cc55945600511a3d72b3a197ef4fdbdd360e821ab043e98e051b8'
+            'd7d086cace639a955a4a76b52935c4841f92e2372a2f5d7f8b32519e7a6301ea'
+            '4ea735e7a213e8b2e0e520dad21be7db087d198ddf41977ae78bf54c6db29719'
+            'a1afba5d6743b308735c32b5832091449640b73270946648dae6e243beaa807c'
+            'c6502b17552c53bc8a3385e064aa7cc92eb3890576a63526700f151e22d5c7c4'
+            '1b2c3e7ce3a3a565abc8b6ae8939cd933615407b30345511858add8ef0bdc55c'
+            '6f85a0ee09f15eeebffa69fda8f954b0256270d9ee30166fe6da2bb624f3eec3'
+            '1ab44e29f97a44925158057dbaedb0a1dabd02ac6d44b4bc891cb817879b95c4'
+            '0ee43a71824b6a31b4429f3cacbe9bcc05cb1959ce77df4f197647b1d774fd46'
+            '1ce120dcc36996beed05b17048676ab6b8cc4092321106c30626808cd64415a0'
+            'f1a51e3125fbd9672302ec2554c1790ece76c56e8bce0a3040fcb8f9a8bb592e')
 
 build() {
   cd "${srcdir}" && cd "`find . -type d -name dwm-\*`"
-  if [ "${dwm_patch}" == 1 ]; then
+  if [ "${dwm_patch:-1}" == 1 ]; then
     cp "${srcdir}/config.h" config.h
     for PATCH in "${source[@]:2}"; do
       msg "${PATCH##*/}" && patch -Np1 -i "${srcdir}/${PATCH##*/}"
 static const Bool viewontag         = True;     /* Switch view on tag switch */
 
 static const Rule rules[] = {
-	/* class          instance     title       tags mask     isfloating   iscentred   hasborder   monitor */
-	{ "Gimp",         NULL,        NULL,       0,            True,        False,      True,       -1 },
-	{ "MPlayer",      NULL,        NULL,       0,            True,        True,       True,       -1 },
-	{ "mplayer2",     NULL,        NULL,       0,            True,        True,       True,       -1 },
-	{ "Vlc",          NULL,        NULL,       0,            True,        True,       True,       -1 },
-	{ "XFontSel",     NULL,        NULL,       0,            True,        True,       True,       -1 },
-	{ "Kcalc",        NULL,        NULL,       0,            True,        True,       True,       -1 },
-	{ "Wine",         NULL,        NULL,       0,            False,       True,       False,      -1 },
-	{ "Komodo Edit",  NULL,        NULL,       0,            True,        True,       True,       -1 },
-	{ "Komodo Edit",  "Komodo",    NULL,       0,            False,       False,      True,       -1 },
-	{ "Komodo Edit",  NULL,        "Find",     0,            True,        True,       True,       -1 },
-	{ "Chromium",     NULL,        NULL,       1 << 2,       False,       False,      True,       -1 },
-	{ "Firefox",      NULL,        NULL,       1 << 2,       True,        True,       True,       -1 },
-	{ "Firefox",      "Navigator", NULL,       1 << 2,       False,       False,      True,       -1 },
-	{ "Ktorrent",     NULL,        NULL,       1 << 4,       False,       False,      True,       -1 },
-	{ "VirtualBox",   NULL,        NULL,       1 << 5,       False,       False,      True,       -1 },
-	{ "VBoxSDL",      NULL,        NULL,       1 << 5,       False,       False,      True,       -1 },
-	{ "Xephyr",       NULL,        NULL,       0,            False,       False,      True,       -1 },
-	{ "Opera",        NULL,        NULL,       1 << 2,       False,       False,      True,       -1 },
-	{ "Pidgin",       NULL,        NULL,       1 << 3,       False,       False,      True,       -1 },
-	{ "Pidgin",       NULL,        "Pidgin",   1 << 3,       True,        True,       True,       -1 },
-	{ "Gyachi",       NULL,        NULL,       1 << 3,       False,       False,      True,       -1 },
+	/* class          instance     title       tags mask     isfloating   iscentred   monitor */
+	{ "Gimp",         NULL,        NULL,       0,            True,        False,      -1 },
+	{ "MPlayer",      NULL,        NULL,       0,            True,        True,       -1 },
+	{ "mplayer2",     NULL,        NULL,       0,            True,        True,       -1 },
+	{ "Vlc",          NULL,        NULL,       0,            True,        True,       -1 },
+	{ "XFontSel",     NULL,        NULL,       0,            True,        True,       -1 },
+	{ "Kcalc",        NULL,        NULL,       0,            True,        True,       -1 },
+	{ "Komodo Edit",  NULL,        NULL,       0,            True,        True,       -1 },
+	{ "Komodo Edit",  "Komodo",    NULL,       0,            False,       False,      -1 },
+	{ "Komodo Edit",  NULL,        "Find",     0,            True,        True,       -1 },
+	{ "Chromium",     NULL,        NULL,       1 << 2,       False,       False,      -1 },
+	{ "Firefox",      NULL,        NULL,       1 << 2,       True,        True,       -1 },
+	{ "Firefox",      "Navigator", NULL,       1 << 2,       False,       False,      -1 },
+	{ "Ktorrent",     NULL,        NULL,       1 << 4,       False,       False,      -1 },
+	{ "VirtualBox",   NULL,        NULL,       1 << 5,       False,       False,      -1 },
+	{ "VBoxSDL",      NULL,        NULL,       1 << 5,       False,       False,      -1 },
+	{ "Wine",         NULL,        NULL,       1 << 5,       False,       True,       -1 },
+	{ "Xephyr",       NULL,        NULL,       0,            False,       False,      -1 },
+	{ "Opera",        NULL,        NULL,       1 << 2,       False,       False,      -1 },
+	{ "Pidgin",       NULL,        NULL,       1 << 3,       False,       False,      -1 },
+	{ "Pidgin",       NULL,        "Pidgin",   1 << 3,       True,        True,       -1 },
+	{ "Gyachi",       NULL,        NULL,       1 << 3,       False,       False,      -1 },
 };
 
 /* layout(s) */
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.