diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-05-26 10:04:45 +0200 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-05-26 10:04:45 +0200 |
commit | cd5198f084186dacb9f90bc2b52654f16f6feefb (patch) | |
tree | c76c9942f52a9e8b2a2d012bcccf99198b9f189a /dmenu/dmenu-border-4.9.diff | |
parent | 15663cf4d0666670ff1dffcac9d56aef87752c3f (diff) |
change settings
Diffstat (limited to 'dmenu/dmenu-border-4.9.diff')
-rw-r--r-- | dmenu/dmenu-border-4.9.diff | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dmenu/dmenu-border-4.9.diff b/dmenu/dmenu-border-4.9.diff new file mode 100644 index 0000000..89b4437 --- /dev/null +++ b/dmenu/dmenu-border-4.9.diff @@ -0,0 +1,25 @@ +diff -up dmenu-4.9-b/config.def.h dmenu-4.9-a/config.def.h +--- dmenu-4.9-b/config.def.h 2019-02-02 13:55:02.000000000 +0100 ++++ dmenu-4.9-a/config.def.h 2019-05-19 02:10:12.740040403 +0200 +@@ -21,3 +21,6 @@ static unsigned int lines = 0; + * for example: " /?\"&[]" + */ + static const char worddelimiters[] = " "; ++ ++/* Size of the window border */ ++static const unsigned int border_width = 5; +diff -up dmenu-4.9-b/dmenu.c dmenu-4.9-a/dmenu.c +--- dmenu-4.9-b/dmenu.c 2019-02-02 13:55:02.000000000 +0100 ++++ dmenu-4.9-a/dmenu.c 2019-05-19 02:11:20.966710117 +0200 +@@ -654,9 +654,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); + + /* open input methods */ |