Merged with bordercolor. Tested in xfce, border is broken

This commit is contained in:
Andreev Gregory 2025-03-03 21:46:58 +03:00
parent 930f84c987
commit 115960df07

View File

@ -771,10 +771,11 @@ setup(void)
/* create menu window */
swa.override_redirect = True;
swa.background_pixel = 0;
swa.border_pixel = scheme[SchemeBorder][ColFg].pixel;
swa.colormap = cmap;
// swa.border_pixel = scheme[SchemeBorder][ColFg].pixel;
swa.border_pixel = 0;
swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
win = XCreateWindow(dpy, root, x, y, mw, mh, 0,
win = XCreateWindow(dpy, root, x, y, mw, mh, border_width,
depth, CopyFromParent, visual,
CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa);
if (border_width)