comparison main.c @ 737:f05da68014bd

making the bar appear at bottom
author Anselm R. Garbe <arg@suckless.org>
date Thu, 08 Feb 2007 11:08:40 +0100
parents 6283adb1fcf2
children 7834ffd650d5
comparison
equal deleted inserted replaced
736:65e3bea2b1f7 737:f05da68014bd
139 /* bar */ 139 /* bar */
140 dc.h = bh = dc.font.height + 2; 140 dc.h = bh = dc.font.height + 2;
141 wa.override_redirect = 1; 141 wa.override_redirect = 1;
142 wa.background_pixmap = ParentRelative; 142 wa.background_pixmap = ParentRelative;
143 wa.event_mask = ButtonPressMask | ExposureMask; 143 wa.event_mask = ButtonPressMask | ExposureMask;
144 barwin = XCreateWindow(dpy, root, sx, sy, sw, bh, 0, DefaultDepth(dpy, screen), 144 barwin = XCreateWindow(dpy, root, sx, sy + sh - bh, sw, bh, 0, DefaultDepth(dpy, screen),
145 CopyFromParent, DefaultVisual(dpy, screen), 145 CopyFromParent, DefaultVisual(dpy, screen),
146 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); 146 CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
147 XDefineCursor(dpy, barwin, cursor[CurNormal]); 147 XDefineCursor(dpy, barwin, cursor[CurNormal]);
148 XMapRaised(dpy, barwin); 148 XMapRaised(dpy, barwin);
149 strcpy(stext, "dwm-"VERSION); 149 strcpy(stext, "dwm-"VERSION);
150 /* windowarea */ 150 /* windowarea */
151 wax = sx; 151 wax = sx;
152 way = sy + bh; 152 way = sy;
153 wah = sh - bh; 153 wah = sh - bh;
154 waw = sw; 154 waw = sw;
155 /* pixmap for everything */ 155 /* pixmap for everything */
156 dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); 156 dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
157 dc.gc = XCreateGC(dpy, root, 0, 0); 157 dc.gc = XCreateGC(dpy, root, 0, 0);