hotfix changes 6175a39e
Anselm R. Garbe · 2007-01-17 11:10 3 file(s) · +4 −7
.hgtags +0 −1
19 19
d3e6fa22ae45b38b1bdb0d813390365e5930360b 1.8
20 20
c7f5f4d543170f03d70468e98a3a0ec8d2c4161b 1.9
21 21
1fce5c464fcd870b9f024aa1853d5cf3a3eb371b 2.0
22 -
d91c79020430b9707f7c572563021a62468a34b3 2.1
config.mk +1 −1
1 1
# dmenu version
2 -
VERSION = 2.0
2 +
VERSION = 2.1
3 3
4 4
# Customize below to fit your system
5 5
main.c +3 −5
350 350
	char *selbg = SELBGCOLOR;
351 351
	char *selfg = SELFGCOLOR;
352 352
	fd_set rd;
353 -
	int i, j, my;
353 +
	int i, j;
354 354
	struct timeval timeout;
355 355
	Item *itm;
356 356
	XEvent ev;
431 431
	wa.override_redirect = 1;
432 432
	wa.background_pixmap = ParentRelative;
433 433
	wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
434 -
	my = 0;
435 434
	mw = DisplayWidth(dpy, screen);
436 435
	mh = dc.font.height + 2;
437 -
	if(bottom)
438 -
		my += DisplayHeight(dpy, screen) - mh;
439 -
	win = XCreateWindow(dpy, root, 0, 0, mw, mh, 0,
436 +
	win = XCreateWindow(dpy, root, 0,
437 +
			bottom ? DisplayHeight(dpy, screen) - mh : 0, mw, mh, 0,
440 438
			DefaultDepth(dpy, screen), CopyFromParent,
441 439
			DefaultVisual(dpy, screen),
442 440
			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);