making the bar appear at bottom 4590d787
Anselm R. Garbe · 2007-02-08 11:08 1 file(s) · +2 −2
main.c +2 −2
141 141
	wa.override_redirect = 1;
142 142
	wa.background_pixmap = ParentRelative;
143 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 145
			CopyFromParent, DefaultVisual(dpy, screen),
146 146
			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
147 147
	XDefineCursor(dpy, barwin, cursor[CurNormal]);
149 149
	strcpy(stext, "dwm-"VERSION);
150 150
	/* windowarea */
151 151
	wax = sx;
152 -
	way = sy + bh;
152 +
	way = sy;
153 153
	wah = sh - bh;
154 154
	waw = sw;
155 155
	/* pixmap for everything */