aewl

diff main.c @ 739:7834ffd650d5

added TOPBAR option for making the bar appear what the user likes
author Anselm R. Garbe <arg@suckless.org>
date Thu, 08 Feb 2007 11:48:01 +0100
parents f05da68014bd
children 1cb9ae0a0104
line diff
     1.1 --- a/main.c	Thu Feb 08 11:11:15 2007 +0100
     1.2 +++ b/main.c	Thu Feb 08 11:48:01 2007 +0100
     1.3 @@ -141,15 +141,15 @@
     1.4  	wa.override_redirect = 1;
     1.5  	wa.background_pixmap = ParentRelative;
     1.6  	wa.event_mask = ButtonPressMask | ExposureMask;
     1.7 -	barwin = XCreateWindow(dpy, root, sx, sy + sh - bh, sw, bh, 0, DefaultDepth(dpy, screen),
     1.8 -			CopyFromParent, DefaultVisual(dpy, screen),
     1.9 +	barwin = XCreateWindow(dpy, root, sx, sy + (TOPBAR ? 0 : sh - bh), sw, bh, 0,
    1.10 +			DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen),
    1.11  			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
    1.12  	XDefineCursor(dpy, barwin, cursor[CurNormal]);
    1.13  	XMapRaised(dpy, barwin);
    1.14  	strcpy(stext, "dwm-"VERSION);
    1.15  	/* windowarea */
    1.16  	wax = sx;
    1.17 -	way = sy;
    1.18 +	way = sy + (TOPBAR ? bh : 0);
    1.19  	wah = sh - bh;
    1.20  	waw = sw;
    1.21  	/* pixmap for everything */