dwm-meillo

diff main.c @ 565:fe766305eed1

applied Gottox' windowarea patch
author arg@mig29
date Thu, 16 Nov 2006 14:40:57 +0100
parents 651f2c868b31
children f05cfa7d5128
line diff
     1.1 --- a/main.c	Wed Nov 08 17:16:38 2006 +0100
     1.2 +++ b/main.c	Thu Nov 16 14:40:57 2006 +0100
     1.3 @@ -18,7 +18,7 @@
     1.4  
     1.5  char stext[1024];
     1.6  Bool *seltag;
     1.7 -int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh;
     1.8 +int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh, wax, way, waw, wah;
     1.9  unsigned int master, ntags, numlockmask;
    1.10  Atom wmatom[WMLast], netatom[NetLast];
    1.11  Bool running = True;
    1.12 @@ -142,6 +142,11 @@
    1.13  	XDefineCursor(dpy, barwin, cursor[CurNormal]);
    1.14  	XMapRaised(dpy, barwin);
    1.15  	strcpy(stext, "dwm-"VERSION);
    1.16 +	/* windowarea */
    1.17 +	wax = sx;
    1.18 +	way = bh;
    1.19 +	wah = sh - bh;
    1.20 +	waw = sw;
    1.21  	/* pixmap for everything */
    1.22  	dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
    1.23  	dc.gc = XCreateGC(dpy, root, 0, 0);