From 115960df07cdd00022c61eb48a1e89fe862e447c Mon Sep 17 00:00:00 2001 From: Andreev Gregory <1@example.com> Date: Mon, 3 Mar 2025 21:46:58 +0300 Subject: [PATCH] Merged with bordercolor. Tested in xfce, border is broken --- dmenu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dmenu.c b/dmenu.c index 216e6a1..e3cbbd3 100644 --- a/dmenu.c +++ b/dmenu.c @@ -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)