Commits

Anonymous committed a3da8f1

add support for gaplessgrid

  • Participants
  • Parent commits 4cf0be3

Comments (0)

Files changed (1)

File single_tagset_all.patch

 
 Please be aware that this patch probably breaks any other patch!
 
-diff -r b8eb21aa35cd dwm.c
---- a/dwm.c	Thu Apr 04 21:02:40 2013 +0200
-+++ b/dwm.c	Thu Apr 04 21:05:30 2013 +0200
+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
 @@ -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 b8eb21aa35cd focusmaster.c
---- a/focusmaster.c	Thu Apr 04 21:02:40 2013 +0200
-+++ b/focusmaster.c	Thu Apr 04 21:05:30 2013 +0200
+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
 @@ -1,4 +1,4 @@
  static void
  focusmaster(const Arg *arg) {
 -	focus(nexttiled(selmon->clients));
 +	focus(nexttiled(selmon->cl->clients, selmon));
  }
-diff -r b8eb21aa35cd push.c
---- a/push.c	Thu Apr 04 21:02:40 2013 +0200
-+++ b/push.c	Thu Apr 04 21:05:30 2013 +0200
+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
+@@ -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++)
+ 	if(n == 0)
+ 		return;
+ 
+@@ -19,7 +19,7 @@
+ 	cw = cols ? m->ww / cols : m->ww;
+ 	cn = 0; /* current column number */
+ 	rn = 0; /* current row number */
+-	for(i = 0, c = nexttiled(m->clients); c; i++, c = nexttiled(c->next)) {
++	for(i = 0, c = nexttiled(m->cl->clients, m); c; i++, c = nexttiled(c->next, m)) {
+ 		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
 @@ -2,8 +2,8 @@
  prevtiled(Client *c) {
  	Client *p, *r;
  		/* attach after c */
  		detach(sel);
  		sel->next = c->next;
-diff -r b8eb21aa35cd tagall.c
---- a/tagall.c	Thu Apr 04 21:02:40 2013 +0200
-+++ b/tagall.c	Thu Apr 04 21:05:30 2013 +0200
+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
 @@ -1,6 +1,6 @@
  void
  tagall(const Arg *arg) {
  		{
  			if(!floating_only || c->isfloating)
  				for(j = 0; j < LENGTH(tags); j++)
-diff -r b8eb21aa35cd zoomswap.c
---- a/zoomswap.c	Thu Apr 04 21:02:40 2013 +0200
-+++ b/zoomswap.c	Thu Apr 04 21:05:30 2013 +0200
+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
 @@ -3,8 +3,8 @@
  Client *
  findbefore(Client *c) {