some more refactoring

pull/1/head
Anselm R. Garbe 18 years ago
parent 5cc27f1b3c
commit 5d9146ff37
  1. 4
      main.c
  2. 4
      tile.c

@ -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;

@ -3,6 +3,9 @@
*/
#include "dwm.h"
unsigned int master = MASTER;
unsigned int nmaster = NMASTER;
/* static */
static void
@ -11,7 +14,6 @@ togglemax(Client *c) {
if(c->isfixed)
return;
if((c->ismax = !c->ismax)) {
c->rx = c->x;
c->ry = c->y;

Loading…
Cancel
Save