jokerboy avatar jokerboy committed 6a00ba7

updates

Comments (0)

Files changed (23)

01-dwm-6.0-pertag2.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 12:41:18.000000000 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.238127513 +0300
-@@ -126,8 +126,6 @@ typedef struct {
+--- a/dwm.c	2012-06-23 21:12:49.000000000 +0300
++++ b/dwm.c	2012-06-24 11:03:55.896900806 +0300
+@@ -127,8 +127,6 @@ typedef struct {
  
  struct Monitor {
  	char ltsymbol[16];
  	int num;
  	int by;               /* bar geometry */
  	int mx, my, mw, mh;   /* screen size */
-@@ -143,9 +141,21 @@ struct Monitor {
+@@ -144,9 +142,21 @@ struct Monitor {
  	Monitor *next;
  	Window barwin;
  	const Layout *lt[2];
  	const char *class;
  	const char *instance;
  	const char *title;
-@@ -252,6 +262,7 @@ static int xerror(Display *dpy, XErrorEv
+@@ -253,6 +263,7 @@ static int xerror(Display *dpy, XErrorEv
  static int xerrordummy(Display *dpy, XErrorEvent *ee);
  static int xerrorstart(Display *dpy, XErrorEvent *ee);
  static void zoom(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -442,7 +453,7 @@ buttonpress(XEvent *e) {
+@@ -443,7 +454,7 @@ buttonpress(XEvent *e) {
  	if(ev->window == selmon->barwin) {
  		i = x = 0;
  		do
  		while(ev->x >= x && ++i < LENGTH(tags));
  		if(i < LENGTH(tags)) {
  			click = ClkTagBar;
-@@ -515,6 +526,9 @@ cleanupmon(Monitor *mon) {
+@@ -516,6 +527,9 @@ cleanupmon(Monitor *mon) {
  	}
  	XUnmapWindow(dpy, mon->barwin);
  	XDestroyWindow(dpy, mon->barwin);
  	free(mon);
  }
  
-@@ -534,6 +548,7 @@ void
+@@ -535,6 +549,7 @@ void
  clientmessage(XEvent *e) {
  	XClientMessageEvent *cme = &e->xclient;
  	Client *c = wintoclient(cme->window);
  
  	if(!c)
  		return;
-@@ -546,6 +561,10 @@ clientmessage(XEvent *e) {
+@@ -547,6 +562,10 @@ clientmessage(XEvent *e) {
  		if(!ISVISIBLE(c)) {
  			c->mon->seltags ^= 1;
  			c->mon->tagset[c->mon->seltags] = c->tags;
  		}
  		pop(c);
  	}
-@@ -648,17 +667,31 @@ configurerequest(XEvent *e) {
+@@ -645,17 +664,31 @@ configurerequest(XEvent *e) {
  Monitor *
  createmon(void) {
  	Monitor *m;
  	return m;
  }
  
-@@ -731,9 +764,9 @@ drawbar(Monitor *m) {
+@@ -728,9 +761,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;
-@@ -1033,7 +1066,7 @@ grabkeys(void) {
+@@ -1030,7 +1063,7 @@ grabkeys(void) {
  
  void
  incnmaster(const Arg *arg) {
  	arrange(selmon);
  }
  
-@@ -1576,7 +1609,7 @@ setlayout(const Arg *arg) {
+@@ -1571,7 +1604,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);
-@@ -1591,10 +1624,10 @@ setmfact(const Arg *arg) {
+@@ -1586,10 +1619,10 @@ setmfact(const Arg *arg) {
  
  	if(!arg || !selmon->lt[selmon->sellt]->arrange)
  		return;
  	arrange(selmon);
  }
  
-@@ -1730,13 +1763,13 @@ tile(Monitor *m) {
+@@ -1725,13 +1758,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);
  		}
-@@ -1770,13 +1803,24 @@ togglefloating(const Arg *arg) {
+@@ -1765,13 +1798,24 @@ togglefloating(const Arg *arg) {
  
  void
  toggletag(const Arg *arg) {
  		focus(NULL);
  		arrange(selmon);
  	}
-@@ -2082,11 +2126,26 @@ updatewmhints(Client *c) {
+@@ -2065,11 +2109,26 @@ updatewmhints(Client *c) {
  
  void
  view(const Arg *arg) {
  	focus(NULL);
  	arrange(selmon);
  }
-@@ -2165,6 +2224,32 @@ zoom(const Arg *arg) {
+@@ -2148,6 +2207,32 @@ zoom(const Arg *arg) {
  	pop(c);
  }
  

02-dwm-6.0-push.diff

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

03-dwm-6.0-cycle.diff

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

04-dwm-6.0-gaplessgrid.diff

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

05-dwm-6.0-pidgin.diff

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

06-dwm-6.0-monocle_count.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-17 16:13:12.328127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.328127513 +0300
-@@ -763,6 +763,7 @@ drawbar(Monitor *m) {
+--- 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) {
  	int x;
  	unsigned int i, occ = 0, urg = 0;
  	unsigned long *col;
  	Client *c;
  
  	for(c = m->clients; c; c = c->next) {
-@@ -779,6 +780,14 @@ drawbar(Monitor *m) {
+@@ -776,6 +777,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;
-@@ -1239,14 +1248,8 @@ maprequest(XEvent *e) {
+@@ -1236,14 +1245,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-17 16:13:12.338127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.338127513 +0300
-@@ -1410,7 +1410,11 @@ resizeclient(Client *c, int x, int y, in
+--- 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
  	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-17 16:13:12.348127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.358127513 +0300
-@@ -866,6 +866,8 @@ drawtext(const char *text, unsigned long
+--- 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
  
  void
  enternotify(XEvent *e) {
  	Client *c;
  	Monitor *m;
  	XCrossingEvent *ev = &e->xcrossing;
-@@ -1256,6 +1258,8 @@ monocle(Monitor *m) {
+@@ -1253,6 +1255,8 @@ monocle(Monitor *m) {
  
  void
  motionnotify(XEvent *e) {

09-dwm-6.0-viewontag.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-17 16:13:12.368127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.368127513 +0300
-@@ -1752,6 +1752,8 @@ tag(const Arg *arg) {
+--- 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) {
  		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-17 16:13:12.378127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.378127513 +0300
-@@ -271,6 +271,7 @@ static int shifttag(int dist);
+--- a/dwm.c	2012-06-24 11:03:56.026900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.026900806 +0300
+@@ -272,6 +272,7 @@ static int shifttag(int dist);
  static void tagcycle(const Arg *arg);
  static void gaplessgrid(Monitor *m);
  static void pidgin(Monitor *m);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -307,6 +308,8 @@ static Window root;
+@@ -308,6 +309,8 @@ static Window root;
  /* configuration, allows nested code to access above variables */
  #include "config.h"
  
  /* compile-time check if all tags fit into an unsigned int bit array. */
  struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
  
-@@ -1199,6 +1202,14 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1196,6 +1199,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]);
-@@ -2450,6 +2461,28 @@ pidgin(Monitor *m) {
+@@ -2433,6 +2444,28 @@ pidgin(Monitor *m) {
  	}
  }
  

11-dwm-6.0-togglemax.diff

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

12-dwm-6.0-autoresize.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-17 16:13:12.408127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.408127513 +0300
-@@ -90,7 +90,7 @@ struct Client {
+--- a/dwm.c	2012-06-24 11:03:56.056900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.056900806 +0300
+@@ -91,7 +91,7 @@ struct Client {
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;
  	unsigned int tags;
  	Client *next;
  	Client *snext;
  	Monitor *mon;
-@@ -659,6 +659,8 @@ configurerequest(XEvent *e) {
+@@ -656,6 +656,8 @@ configurerequest(XEvent *e) {
  				configure(c);
  			if(ISVISIBLE(c))
  				XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
  		}
  		else
  			configure(c);
-@@ -1727,7 +1729,12 @@ showhide(Client *c) {
+@@ -1722,7 +1724,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-17 16:13:12.418127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.428127513 +0300
-@@ -1658,7 +1658,7 @@ setmfact(const Arg *arg) {
+--- 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) {
  	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-17 16:13:12.438127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.438127513 +0300
-@@ -62,6 +62,7 @@ enum { NetSupported, NetWMName, NetWMSta
+--- a/dwm.c	2012-06-24 11:03:56.086900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.086900806 +0300
+@@ -63,6 +63,7 @@ enum { NetSupported, NetWMName, NetWMSta
         NetWMFullscreen, NetActiveWindow, NetWMWindowType,
         NetWMWindowTypeDialog, NetClientList, NetLast };     /* EWMH atoms */
  enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
  enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
         ClkClientWin, ClkRootWin, ClkLast };             /* clicks */
  
-@@ -273,6 +274,7 @@ static void gaplessgrid(Monitor *m);
+@@ -274,6 +275,7 @@ static void gaplessgrid(Monitor *m);
  static void pidgin(Monitor *m);
  static void togglescratch(const Arg *arg);
  static void togglemax(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -298,7 +300,7 @@ static void (*handler[LASTEvent]) (XEven
+@@ -299,7 +301,7 @@ static void (*handler[LASTEvent]) (XEven
  	[PropertyNotify] = propertynotify,
  	[UnmapNotify] = unmapnotify
  };
  static Bool running = True;
  static Cursor cursor[CurLast];
  static Display *dpy;
-@@ -1175,6 +1177,10 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1172,6 +1174,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));
-@@ -1187,7 +1193,13 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1184,7 +1190,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;
-@@ -1692,6 +1704,7 @@ setup(void) {
+@@ -1687,6 +1699,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);
-@@ -1769,6 +1782,7 @@ void
+@@ -1764,6 +1777,7 @@ void
  tag(const Arg *arg) {
  	if(selmon->sel && arg->ui & TAGMASK) {
  		selmon->sel->tags = arg->ui & TAGMASK;
  		focus(NULL);
  		arrange(selmon);
  		if(viewontag)
-@@ -1861,6 +1875,7 @@ toggletag(const Arg *arg) {
+@@ -1856,6 +1870,7 @@ toggletag(const Arg *arg) {
  		}
  		selmon->sel->tags = newtags;
  		selmon->lt[selmon->sellt] = selmon->lts[selmon->curtag];
  		focus(NULL);
  		arrange(selmon);
  	}
-@@ -2523,6 +2538,12 @@ togglemax(const Arg *arg) {
+@@ -2506,6 +2521,12 @@ togglemax(const Arg *arg) {
  	}
  }
  

15-dwm-6.0-centred-floating.diff

 Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-06-17 16:13:12.448127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.458127513 +0300
-@@ -91,7 +91,7 @@ struct Client {
+--- a/dwm.c	2012-06-24 11:03:56.096900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.106900806 +0300
+@@ -92,7 +92,7 @@ struct Client {
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;
  	unsigned int tags;
  	Client *next;
  	Client *snext;
  	Monitor *mon;
-@@ -162,6 +162,7 @@ typedef struct {
+@@ -163,6 +163,7 @@ typedef struct {
  	const char *title;
  	unsigned int tags;
  	Bool isfloating;
  	int monitor;
  } Rule;
  
-@@ -327,6 +328,7 @@ applyrules(Client *c) {
+@@ -328,6 +329,7 @@ applyrules(Client *c) {
  
  	/* rule matching */
  	c->isfloating = c->tags = 0;
  	XGetClassHint(dpy, c->win, &ch);
  	class    = ch.res_class ? ch.res_class : broken;
  	instance = ch.res_name  ? ch.res_name  : broken;
-@@ -338,6 +340,7 @@ applyrules(Client *c) {
+@@ -339,6 +341,7 @@ applyrules(Client *c) {
  		&& (!r->instance || strstr(instance, r->instance)))
  		{
  			c->isfloating = r->isfloating;
  			c->tags |= r->tags;
  			for(m = mons; m && m->num != r->monitor; m = m->next);
  			if(m)
-@@ -1201,8 +1204,14 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1198,8 +1201,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-17 16:13:12.468127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.468127513 +0300
-@@ -276,6 +276,7 @@ static void pidgin(Monitor *m);
+--- a/dwm.c	2012-06-24 11:03:56.116900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.116900806 +0300
+@@ -277,6 +277,7 @@ static void pidgin(Monitor *m);
  static void togglescratch(const Arg *arg);
  static void togglemax(const Arg *arg);
  static void settagsatom(Window w, unsigned int tags);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -2553,6 +2554,32 @@ settagsatom(Window w, unsigned int tags)
+@@ -2536,6 +2537,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-17 16:13:12.478127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.488127513 +0300
-@@ -54,6 +54,7 @@
+--- a/dwm.c	2012-06-24 11:03:56.126900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.136900806 +0300
+@@ -55,6 +55,7 @@
  #define HEIGHT(X)               ((X)->h + 2 * (X)->bw)
  #define TAGMASK                 ((1 << LENGTH(tags)) - 1)
  #define TEXTW(X)                (textnw(X, strlen(X)) + dc.font.height)
  
  /* enums */
  enum { CurNormal, CurResize, CurMove, CurLast };        /* cursor */
-@@ -100,8 +101,7 @@ struct Client {
+@@ -101,8 +102,7 @@ struct Client {
  
  typedef struct {
  	int x, y, w, h;
  	Drawable drawable;
  	GC gc;
  	struct {
-@@ -190,8 +190,9 @@ static void die(const char *errstr, ...)
+@@ -191,8 +191,9 @@ static void die(const char *errstr, ...)
  static Monitor *dirtomon(int dir);
  static void drawbar(Monitor *m);
  static void drawbars(void);
  static void enternotify(XEvent *e);
  static void expose(XEvent *e);
  static void focus(Client *c);
-@@ -786,10 +787,9 @@ drawbar(Monitor *m) {
+@@ -783,10 +784,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) {
-@@ -800,30 +800,30 @@ drawbar(Monitor *m) {
+@@ -797,30 +797,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);
-@@ -838,10 +838,34 @@ drawbars(void) {
+@@ -835,10 +835,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);
-@@ -850,17 +874,17 @@ drawsquare(Bool filled, Bool empty, Bool
+@@ -847,17 +871,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--);
-@@ -869,7 +893,7 @@ drawtext(const char *text, unsigned long
+@@ -866,7 +890,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
-@@ -921,7 +945,7 @@ focus(Client *c) {
+@@ -918,7 +942,7 @@ focus(Client *c) {
  		detachstack(c);
  		attachstack(c);
  		grabbuttons(c, True);
  		setfocus(c);
  	}
  	else {
-@@ -1237,7 +1261,7 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1234,7 +1258,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);
-@@ -1720,12 +1744,11 @@ setup(void) {
+@@ -1715,12 +1739,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);
-@@ -1809,13 +1832,25 @@ tagmon(const Arg *arg) {
+@@ -1804,13 +1827,25 @@ tagmon(const Arg *arg) {
  
  int
  textnw(const char *text, unsigned int len) {
  }
  
  void
-@@ -1907,7 +1942,7 @@ unfocus(Client *c, Bool setfocus) {
+@@ -1902,7 +1937,7 @@ unfocus(Client *c, Bool setfocus) {
  	if(!c)
  		return;
  	grabbuttons(c, False);
  	if(setfocus) {
  		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
  		XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
-@@ -2179,8 +2214,11 @@ updatewmhints(Client *c) {
+@@ -2162,8 +2197,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-17 16:13:12.498127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.498127513 +0300
-@@ -89,6 +89,7 @@ struct Client {
+--- a/dwm.c	2012-06-24 11:03:56.146900806 +0300
++++ b/dwm.c	2012-06-24 11:03:56.146900806 +0300
+@@ -90,6 +90,7 @@ struct Client {
  	float mina, maxa;
  	int x, y, w, h;
  	int oldx, oldy, oldw, oldh;
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;
  	unsigned int tags;
-@@ -278,6 +279,7 @@ static void togglescratch(const Arg *arg
+@@ -279,6 +280,7 @@ static void togglescratch(const Arg *arg
  static void togglemax(const Arg *arg);
  static void settagsatom(Window w, unsigned int tags);
  static void focusurgent(const Arg *arg);
  
  /* variables */
  static const char broken[] = "broken";
-@@ -1266,6 +1268,7 @@ manage(Window w, XWindowAttributes *wa)
+@@ -1263,6 +1265,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)
-@@ -1685,10 +1688,18 @@ setfullscreen(Client *c, Bool fullscreen
+@@ -1680,10 +1683,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);
-@@ -1893,10 +1904,12 @@ togglefloating(const Arg *arg) {
+@@ -1890,8 +1901,10 @@ togglefloating(const Arg *arg) {
  		return;
  	selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
  	if(selmon->sel->isfloating)
 -		       selmon->sel->w, selmon->sel->h, False);
 +		resize(selmon->sel, selmon->sel->sfx, selmon->sel->sfy,
 +		       selmon->sel->sfw, selmon->sel->sfh, False);
- 	else if(selmon->sel->isfullscreen)
- 		setfullscreen(selmon->sel, False);
 +	else
 +		savefloat(selmon->sel);
  	arrange(selmon);
  }
  
-@@ -2618,6 +2631,14 @@ focusurgent(const Arg *arg) {
+@@ -2601,6 +2614,14 @@ focusurgent(const Arg *arg) {
  	}
  }
  

19-dwm-6.0-fix_keypress_deprecated.diff

-Homepage: http://hg.punctweb.ro
-
---- a/dwm.c	2012-06-17 16:13:12.508127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.508127513 +0300
-@@ -36,6 +36,7 @@
- #include <X11/Xlib.h>
- #include <X11/Xproto.h>
- #include <X11/Xutil.h>
-+#include <X11/XKBlib.h>
- #ifdef XINERAMA
- #include <X11/extensions/Xinerama.h>
- #endif /* XINERAMA */
-@@ -1179,7 +1180,7 @@ keypress(XEvent *e) {
- 	XKeyEvent *ev;
- 
- 	ev = &e->xkey;
--	keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
-+	keysym = XkbKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0, 0);
- 	for(i = 0; i < LENGTH(keys); i++)
- 		if(keysym == keys[i].keysym
- 		&& CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)

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;

20-dwm-6.0-hasborder.diff

-Homepage: http://hg.punctweb.ro
-
---- a/dwm.c	2012-06-17 16:13:12.528127513 +0300
-+++ b/dwm.c	2012-06-17 16:13:12.528127513 +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)
-@@ -1252,7 +1255,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;
         "16-${pkgname}-${pkgver}-focusurgent.diff"
         "17-${pkgname}-${pkgver}-statuscolors.diff"
         "18-${pkgname}-${pkgver}-save_floats.diff"
-        "19-${pkgname}-${pkgver}-fix_keypress_deprecated.diff"
-        "20-${pkgname}-${pkgver}-hasborder.diff")
-sha256sums=('3ce11e570633e35affad9be1b3421d2eb494641472eed5d02a02acb943a0de9c'
-            'b35289b99e8ae29a8823050e126da31917a4404f951bd480edcc98e0e2df9577'
-            '630e93e9129f6c8cdc9c65c41e251bc1df821afa6224bc35353296358cbd75fa'
-            'e0694c6de25510bc6a5124e15f4e6f85ac265ae1daeefb3c1348bd47318397b4'
-            '7ef0ad095fb11d25d7116d41a3f83bf0f638e434e5bc4db491df566109b4e9bf'
-            'da0165421e339afffe107239d7418db5a5198b05223e7d96e5d52e920a2fb849'
-            '36684f32fb8f6c1f7954c3c2193a456830951b49053e4bb196a064aa68ecc8e2'
-            '1e203d77d50edc28ac4df64500ed14338d1f173ac4cb72d9de8a5e3beca97a82'
-            'ed8ec886ac2f3f9dd83082b4e01cd56b84bf778c043881028ed2c47b32e191c0'
-            '3cf21c46fa98fc973c8c0c3cf6b1b69d4ab2071c1b6d9306b42f36bde8de2d0e'
-            'a77d206dd55d122f6539ab2a7e2b6b27de90e6133b60cb0c60e232dbf9bc3705'
-            '63aaed1717c68cdf2f21a82598c16466278afcb26a77bf91464119c9372b2935'
-            'fdc45d62a3c83612671488c670a9536cc1b04f779a629e6f9aa40671e487ffb6'
-            'ff92690eb460a2f0384f67c03c2a5130e312b91cec6b5a8920edcb99bd8f46b6'
-            'dee87f25956b9c8b7ff62278e2f07955a820d4946dee610be4d1d01251a271b3'
-            '9eb5e0755bb4e7b403524a3eeffdc4bec72a5da4bf44a1419547a81796aa613f'
-            'a5f34ac38928c6b8a6b5123b29ac65a38f25c0b864952b8210d54c96a6305b52'
-            'a124f6e8c4a7ec4117a9ab1f0cbb57c2ff919ed09ebf64d03da4db4c848f67cc'
-            '545c1ab885c3dec096aa281360496b42a64a37ddf7e2696398f0c391f81f9302'
-            'f7ecfaaefd52cc65fedd6b8c9ef726af3e9d1cac5bce4949eaa9e1c7fa6294f9'
-            '066f8e0cdee4d28c448ab0146da10dc6270f0e36ef2c18f5889fbd324bfa095a'
-            '6aa240dad86e18fa8104da5a948f807a96d6ac0b88a3e5dbc46c7da5f997bc48')
+        "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')
 
 build() {
   cd "${srcdir}" && cd "`find . -type d -name dwm-\*`"
 	{ "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 },
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.