Paul  Barbu - Gheorghe avatar Paul Barbu - Gheorghe committed 037c710

added bstack and mpdcontrol as dependencies

Comments (0)

Files changed (2)

-diff -r ec4baab78314 bstack.c
+added bstack.c and bstackhoriz.c as dependencies, when they change dwm will be recompiled even though dwm.c is up-to-date
+
+diff -r 3071be169e6b Makefile
+--- a/Makefile	Sat Nov 17 19:57:09 2012 +0200
++++ b/Makefile	Fri Nov 23 19:56:22 2012 +0200
+@@ -18,7 +18,7 @@
+ 	@echo CC $<
+ 	@${CC} -c ${CFLAGS} $<
+ 
+-${OBJ}: config.h config.mk
++${OBJ}: config.h config.mk bstack.c bstackhoriz.c
+ 
+ config.h: config.def.h
+ 	@echo creating $@ from config.def.h
+diff -r 3071be169e6b bstack.c
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ b/bstack.c	Tue Feb 28 11:28:54 2012 -0500
++++ b/bstack.c	Fri Nov 23 19:56:22 2012 +0200
 @@ -0,0 +1,33 @@
 +static void
 +bstack(Monitor *m) {
 +		mh = m->nmaster ? m->mfact * m->wh : 0;
 +		tw = m->ww / (n - m->nmaster);
 +		ty = m->wy + mh;
-+	} 
++	}
 +	else {
 +		mh = m->wh;
 +		tw = m->ww;
 +			w = (m->ww - mx) / (MIN(n, m->nmaster) - i);
 +			resize(c, m->wx + mx, m->wy, w - (2 * c->bw), mh - (2 * c->bw), False);
 +			mx += WIDTH(c);
-+		} 
++		}
 +		else {
 +			h = m->wh - mh;
 +			resize(c, tx, ty, tw - (2 * c->bw), h - (2 * c->bw), False);
 +		}
 +	}
 +}
-diff -r ec4baab78314 bstackhoriz.c
+diff -r 3071be169e6b bstackhoriz.c
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ b/bstackhoriz.c	Tue Feb 28 11:28:54 2012 -0500
++++ b/bstackhoriz.c	Fri Nov 23 19:56:22 2012 +0200
 @@ -0,0 +1,31 @@
 +static void
 +bstackhoriz(Monitor *m) {
 +		}
 +	}
 +}
-diff -r ec4baab78314 config.def.h
---- a/config.def.h	Mon Dec 19 15:38:30 2011 +0100
-+++ b/config.def.h	Tue Feb 28 11:28:54 2012 -0500
-@@ -27,11 +27,15 @@ static const float mfact      = 0.55; /*
+diff -r 3071be169e6b config.def.h
+--- a/config.def.h	Sat Nov 17 19:57:09 2012 +0200
++++ b/config.def.h	Fri Nov 23 19:56:22 2012 +0200
+@@ -48,11 +48,15 @@
  static const int nmaster      = 1;    /* number of clients in master area */
- static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
+ static const Bool resizehints = False; /* True means respect size hints in tiled resizals */
  
 +#include "bstack.c"
 +#include "bstackhoriz.c"
 # HG changeset patch
-# Date 1353692775 -7200
+# Date 1353693473 -7200
 # User Barbu Paul - Gheorghe <barbu.paul.gheorghe@gmail.com>
-# Parent 77c7969199b287843b3043b38642a62f9d00a580
+# Parent 1f779e0c96f3f2ab111443507be97d859264b064
 Control MPD with keybinds
 
-diff -r 77c7969199b2 config.def.h
---- a/config.def.h	Sat Nov 17 19:57:09 2012 +0200
-+++ b/config.def.h	Fri Nov 23 19:46:15 2012 +0200
+diff -r 1f779e0c96f3 Makefile
+--- a/Makefile	Fri Nov 23 19:56:31 2012 +0200
++++ b/Makefile	Fri Nov 23 19:57:57 2012 +0200
+@@ -18,7 +18,7 @@
+ 	@echo CC $<
+ 	@${CC} -c ${CFLAGS} $<
+ 
+-${OBJ}: config.h config.mk bstack.c bstackhoriz.c
++${OBJ}: config.h config.mk bstack.c bstackhoriz.c mpdcontrol.c
+ 
+ config.h: config.def.h
+ 	@echo creating $@ from config.def.h
+diff -r 1f779e0c96f3 config.def.h
+--- a/config.def.h	Fri Nov 23 19:56:31 2012 +0200
++++ b/config.def.h	Fri Nov 23 19:57:57 2012 +0200
 @@ -123,6 +123,8 @@
  static const char *rebootcmd[]  = { "systemctl", "reboot", NULL };
  static const char *poweroffcmd[]  = { "systemctl", "poweroff", NULL };
  };
  
  /* button definitions */
-diff -r 77c7969199b2 config.mk
---- a/config.mk	Sat Nov 17 19:57:09 2012 +0200
-+++ b/config.mk	Fri Nov 23 19:46:15 2012 +0200
+diff -r 1f779e0c96f3 config.mk
+--- a/config.mk	Fri Nov 23 19:56:31 2012 +0200
++++ b/config.mk	Fri Nov 23 19:57:57 2012 +0200
 @@ -16,7 +16,7 @@
  
  # includes and libs
  
  # flags
  CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-diff -r 77c7969199b2 mpdcontrol.c
+diff -r 1f779e0c96f3 mpdcontrol.c
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ b/mpdcontrol.c	Fri Nov 23 19:46:15 2012 +0200
++++ b/mpdcontrol.c	Fri Nov 23 19:57:57 2012 +0200
 @@ -0,0 +1,140 @@
 +#include <stdlib.h>
 +#include <string.h>
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.