aewl

diff main.c @ 697:4d12382fef8e

removed unnecessary bx, by, bw variables
author Anselm R. Garbe <arg@suckless.org>
date Tue, 16 Jan 2007 11:33:42 +0100
parents cbec08a54a15
children a2d568a5cdb8
line diff
     1.1 --- a/main.c	Tue Jan 16 11:28:17 2007 +0100
     1.2 +++ b/main.c	Tue Jan 16 11:33:42 2007 +0100
     1.3 @@ -19,7 +19,7 @@
     1.4  
     1.5  char stext[256];
     1.6  Bool *seltag;
     1.7 -int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh, wax, way, waw, wah;
     1.8 +int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah;
     1.9  unsigned int master, nmaster, ntags, numlockmask;
    1.10  Atom wmatom[WMLast], netatom[NetLast];
    1.11  Bool running = True;
    1.12 @@ -136,14 +136,11 @@
    1.13  	nmaster = NMASTER;
    1.14  	bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL);
    1.15  	/* bar */
    1.16 -	bx = sx;
    1.17 -	by = sy;
    1.18 -	bw = sw;
    1.19  	dc.h = bh = dc.font.height + 2;
    1.20  	wa.override_redirect = 1;
    1.21  	wa.background_pixmap = ParentRelative;
    1.22  	wa.event_mask = ButtonPressMask | ExposureMask;
    1.23 -	barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy, screen),
    1.24 +	barwin = XCreateWindow(dpy, root, sx, sy, sw, bh, 0, DefaultDepth(dpy, screen),
    1.25  			CopyFromParent, DefaultVisual(dpy, screen),
    1.26  			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
    1.27  	XDefineCursor(dpy, barwin, cursor[CurNormal]);