Add border

This commit is contained in:
Hektor Misplon
2020-05-07 21:21:44 +00:00
parent 0f07530564
commit a6ffc24f39
6 changed files with 839 additions and 1 deletions

View File

@@ -682,9 +682,10 @@ setup(void)
swa.override_redirect = True;
swa.background_pixel = scheme[SchemeNorm][ColBg].pixel;
swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0,
win = XCreateWindow(dpy, parentwin, x, y, mw, mh, border_width,
CopyFromParent, CopyFromParent, CopyFromParent,
CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
XSetWindowBorder(dpy, win, scheme[SchemeSel] [ColBg].pixel);
XSetClassHint(dpy, win, &ch);