Commits

Anonymous committed 08b7305

fix missing ; in gaplessgrid.c

  • Participants
  • Parent commits 0187130

Comments (0)

Files changed (2)

File gaplessgrid.patch

 # HG changeset patch
-# Parent 1c9fe7d1860a4585616cc85962ff610419786047
+# Parent dc2667f4aa2e2d513ee2ebdfbe2ff2cf13347458
 
-diff -r 1c9fe7d1860a config.def.h
---- a/config.def.h	Sat Apr 06 08:38:51 2013 +0200
-+++ b/config.def.h	Sat Apr 06 08:42:47 2013 +0200
+diff -r dc2667f4aa2e config.def.h
+--- a/config.def.h	Sun Apr 07 09:00:12 2013 +0200
++++ b/config.def.h	Mon Apr 08 07:59:18 2013 +0200
 @@ -35,11 +35,13 @@
  static const int nmaster      = 1;    /* number of clients in master area */
  static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
  	{ MODKEY,                       XK_space,  toggleview,     {.ui = 1} },
  	{ MODKEY|ControlMask,           XK_space,  setlayout,      {0} },
  	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
-diff -r 1c9fe7d1860a gaplessgrid.c
+diff -r dc2667f4aa2e gaplessgrid.c
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ b/gaplessgrid.c	Sat Apr 06 08:42:47 2013 +0200
++++ b/gaplessgrid.c	Mon Apr 08 07:59:18 2013 +0200
 @@ -0,0 +1,35 @@
 +void
 +gaplessgrid(Monitor *m) {
 +	unsigned int n, cols, rows, cn, rn, i, cx, cy, cw, ch;
 +	Client *c;
 +
-+	for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++)
++	for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) ;
 +	if(n == 0)
 +		return;
 +

File single_tagset_all.patch

 
 Please be aware that this patch probably breaks any other patch!
 
-diff -r 1c96c88cc4e4 dwm.c
---- a/dwm.c	Sat Apr 06 08:43:27 2013 +0200
-+++ b/dwm.c	Sat Apr 06 09:00:59 2013 +0200
+diff -r c30572c7d98c dwm.c
+--- a/dwm.c	Mon Apr 08 07:59:20 2013 +0200
++++ b/dwm.c	Mon Apr 08 08:00:34 2013 +0200
 @@ -46,7 +46,7 @@
  #define CLEANMASK(mask)         (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
  #define INTERSECT(x,y,w,h,m)    (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \
  	if(c != cold && !at)
  		at = findbefore(c);
  	detach(c);
-diff -r 1c96c88cc4e4 focusmaster.c
---- a/focusmaster.c	Sat Apr 06 08:43:27 2013 +0200
-+++ b/focusmaster.c	Sat Apr 06 09:00:59 2013 +0200
+diff -r c30572c7d98c focusmaster.c
+--- a/focusmaster.c	Mon Apr 08 07:59:20 2013 +0200
++++ b/focusmaster.c	Mon Apr 08 08:00:34 2013 +0200
 @@ -1,4 +1,4 @@
  static void
  focusmaster(const Arg *arg) {
 -	focus(nexttiled(selmon->clients));
 +	focus(nexttiled(selmon->cl->clients, selmon));
  }
-diff -r 1c96c88cc4e4 gaplessgrid.c
---- a/gaplessgrid.c	Sat Apr 06 08:43:27 2013 +0200
-+++ b/gaplessgrid.c	Sat Apr 06 09:00:59 2013 +0200
+diff -r c30572c7d98c gaplessgrid.c
+--- a/gaplessgrid.c	Mon Apr 08 07:59:20 2013 +0200
++++ b/gaplessgrid.c	Mon Apr 08 08:00:34 2013 +0200
 @@ -3,7 +3,7 @@
  	unsigned int n, cols, rows, cn, rn, i, cx, cy, cw, ch;
  	Client *c;
  
--	for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++)
-+	for(n = 0, c = nexttiled(m->cl->clients, m); c; c = nexttiled(c->next, m), n++)
+-	for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) ;
++	for(n = 0, c = nexttiled(m->cl->clients, m); c; c = nexttiled(c->next, m), n++) ;
  	if(n == 0)
  		return;
  
  		if(i/rows + 1 > cols - n%cols)
  			rows = n/cols + 1;
  		ch = rows ? m->wh / rows : m->wh;
-diff -r 1c96c88cc4e4 push.c
---- a/push.c	Sat Apr 06 08:43:27 2013 +0200
-+++ b/push.c	Sat Apr 06 09:00:59 2013 +0200
+diff -r c30572c7d98c push.c
+--- a/push.c	Mon Apr 08 07:59:20 2013 +0200
++++ b/push.c	Mon Apr 08 08:00:34 2013 +0200
 @@ -2,8 +2,8 @@
  prevtiled(Client *c) {
  	Client *p, *r;
  		/* attach after c */
  		detach(sel);
  		sel->next = c->next;
-diff -r 1c96c88cc4e4 tagall.c
---- a/tagall.c	Sat Apr 06 08:43:27 2013 +0200
-+++ b/tagall.c	Sat Apr 06 09:00:59 2013 +0200
+diff -r c30572c7d98c tagall.c
+--- a/tagall.c	Mon Apr 08 07:59:20 2013 +0200
++++ b/tagall.c	Mon Apr 08 08:00:34 2013 +0200
 @@ -1,6 +1,6 @@
  void
  tagall(const Arg *arg) {
  		{
  			if(!floating_only || c->isfloating)
  				for(j = 0; j < LENGTH(tags); j++)
-diff -r 1c96c88cc4e4 zoomswap.c
---- a/zoomswap.c	Sat Apr 06 08:43:27 2013 +0200
-+++ b/zoomswap.c	Sat Apr 06 09:00:59 2013 +0200
+diff -r c30572c7d98c zoomswap.c
+--- a/zoomswap.c	Mon Apr 08 07:59:20 2013 +0200
++++ b/zoomswap.c	Mon Apr 08 08:00:34 2013 +0200
 @@ -3,8 +3,8 @@
  Client *
  findbefore(Client *c) {