|
|
|
@ -19,7 +19,7 @@ |
|
|
|
|
|
|
|
|
|
char stext[256]; |
|
|
|
|
Bool *seltag; |
|
|
|
|
int bx, by, bw, bh, bmw, masterd, screen, sx, sy, sw, sh, wax, way, waw, wah; |
|
|
|
|
int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; |
|
|
|
|
unsigned int master, nmaster, ntags, numlockmask; |
|
|
|
|
Atom wmatom[WMLast], netatom[NetLast]; |
|
|
|
|
Bool running = True; |
|
|
|
@ -136,14 +136,11 @@ setup(void) { |
|
|
|
|
nmaster = NMASTER; |
|
|
|
|
bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); |
|
|
|
|
/* bar */ |
|
|
|
|
bx = sx; |
|
|
|
|
by = sy; |
|
|
|
|
bw = sw; |
|
|
|
|
dc.h = bh = dc.font.height + 2; |
|
|
|
|
wa.override_redirect = 1; |
|
|
|
|
wa.background_pixmap = ParentRelative; |
|
|
|
|
wa.event_mask = ButtonPressMask | ExposureMask; |
|
|
|
|
barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy, screen), |
|
|
|
|
barwin = XCreateWindow(dpy, root, sx, sy, sw, bh, 0, DefaultDepth(dpy, screen), |
|
|
|
|
CopyFromParent, DefaultVisual(dpy, screen), |
|
|
|
|
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); |
|
|
|
|
XDefineCursor(dpy, barwin, cursor[CurNormal]); |
|
|
|
|