dmenu

[fork] X11 menuing
Log | Files | Refs | README | LICENSE

commit 05e42e0fc27ea9d4f6d214e42052119bafc4de8b
parent 7df66e845ed0685052a7e3a88d6786e17a57448f
Author: hhvn <dev@hhvn.uk>
Date:   Sat,  8 Jan 2022 20:39:09 +0000

dmenu.c: remove duplicate -w option match

Diffstat:
Mdmenu.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dmenu.c b/dmenu.c @@ -946,7 +946,7 @@ main(int argc, char *argv[]) /* these options take one argument */ else if (!strcmp(argv[i], "-l")) /* number of lines in vertical list */ lines = atoi(argv[++i]); - else if (!strcmp(argv[i], "-w")) + else if (!strcmp(argv[i], "-w")) embed = argv[++i]; else if (!strcmp(argv[i], "-m")) mon = atoi(argv[++i]); @@ -957,9 +957,7 @@ main(int argc, char *argv[]) else if(!strcmp(argv[i], "-h")) { /* minimum height of one menu line */ lineheight = atoi(argv[++i]); lineheight = MAX(lineheight,8); /* reasonable default in case of value too small/negative */ - } else if (!strcmp(argv[i], "-w")) /* embedding window id */ - embed = argv[++i]; - else if (!strcmp(argv[i], "-bw")) + } else if (!strcmp(argv[i], "-bw")) border_width = atoi(argv[++i]); /* border width */ else usage();