[hackers] [dwm] some more refactoring

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon Feb 19 13:17:50 2007

changeset: 770:5280cbb5bbd4
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Feb 19 13:17:49 2007 +0100
summary: some more refactoring

diff -r dc60583894e0 -r 5280cbb5bbd4 main.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 @@ setup(void) {
         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;
diff -r dc60583894e0 -r 5280cbb5bbd4 tile.c
--- a/tile.c Mon Feb 19 13:00:29 2007 +0100
+++ b/tile.c Mon Feb 19 13:17:49 2007 +0100
@@ -2,16 +2,18 @@
  * See LICENSE file for license details.
  */
 #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;
Received on Mon Feb 19 2007 - 13:17:50 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:27 UTC