some more refactoring
authorAnselm R. Garbe <arg@suckless.org>
Mon, 19 Feb 2007 13:17:49 +0100
changeset 770 5280cbb5bbd4
parent 769 dc60583894e0
child 771 05946fa53085
some more refactoring
main.c
tile.c
--- a/main.c	Mon Feb 19 13:00:29 2007 +0100
+++ b/main.c	Mon Feb 19 13:17:49 2007 +0100
@@ -19,7 +19,7 @@
 
 char stext[256];
 int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah;
-unsigned int master, nmaster, ntags, numlockmask;
+unsigned int ntags, numlockmask;
 Atom wmatom[WMLast], netatom[NetLast];
 Bool running = True;
 Bool *seltag;
@@ -133,8 +133,6 @@
 	sx = sy = 0;
 	sw = DisplayWidth(dpy, screen);
 	sh = DisplayHeight(dpy, screen);
-	master = MASTER;
-	nmaster = NMASTER;
 	bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL);
 	/* bar */
 	dc.h = bh = dc.font.height + 2;
--- a/tile.c	Mon Feb 19 13:00:29 2007 +0100
+++ b/tile.c	Mon Feb 19 13:17:49 2007 +0100
@@ -3,15 +3,17 @@
  */
 #include "dwm.h"
 
+unsigned int master = MASTER;
+unsigned int nmaster = NMASTER;
+
 /* static */
 
 static void
 togglemax(Client *c) {
 	XEvent ev;
-		
+
 	if(c->isfixed)
 		return;
-
 	if((c->ismax = !c->ismax)) {
 		c->rx = c->x;
 		c->ry = c->y;