diff options
| author | bard <[email protected]> | 2024-05-31 16:01:49 -0400 |
|---|---|---|
| committer | bard <[email protected]> | 2024-05-31 16:01:49 -0400 |
| commit | 8aa290ce1d935d1206c875f7c2483180cbc42763 (patch) | |
| tree | 0380849e89ba3237ab05583de96d0950deae880d /dwm/Repositories/dmenu/dmenu-border-20230512-0fe460d.diff | |
| parent | 8f0231d5f45adf980717ea1453a92d05f7093c74 (diff) | |
move to another repo
Diffstat (limited to 'dwm/Repositories/dmenu/dmenu-border-20230512-0fe460d.diff')
| -rw-r--r-- | dwm/Repositories/dmenu/dmenu-border-20230512-0fe460d.diff | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/dwm/Repositories/dmenu/dmenu-border-20230512-0fe460d.diff b/dwm/Repositories/dmenu/dmenu-border-20230512-0fe460d.diff deleted file mode 100644 index f7a5971..0000000 --- a/dwm/Repositories/dmenu/dmenu-border-20230512-0fe460d.diff +++ /dev/null @@ -1,36 +0,0 @@ -diff --git a/config.def.h b/config.def.h -index 1edb647..dd3eb31 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -21,3 +21,6 @@ static unsigned int lines = 0; - * for example: " /?\"&[]" - */ - static const char worddelimiters[] = " "; -+ -+/* Size of the window border */ -+static unsigned int border_width = 0; -diff --git a/dmenu.c b/dmenu.c -index 27b7a30..7c130fc 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -684,9 +684,11 @@ setup(void) - swa.override_redirect = True; - swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; - 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, - CopyFromParent, CopyFromParent, CopyFromParent, - CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); -+ if (border_width) -+ XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel); - XSetClassHint(dpy, win, &ch); - - -@@ -757,6 +759,8 @@ main(int argc, char *argv[]) - colors[SchemeSel][ColFg] = argv[++i]; - else if (!strcmp(argv[i], "-w")) /* embedding window id */ - embed = argv[++i]; -+ else if (!strcmp(argv[i], "-bw")) -+ border_width = atoi(argv[++i]); /* border width */ - else - usage(); |
