From 7da879629132ad6924581d53434cde89124887fb Mon Sep 17 00:00:00 2001 From: Richard Kraus Date: Sun, 18 Sep 2022 00:20:30 +0200 Subject: [PATCH] fix ignored --monitor in BEMENU_OPTS env var --- client/bemenu-run.c | 1 + client/bemenu.c | 1 + client/common/common.c | 3 --- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/bemenu-run.c b/client/bemenu-run.c index dd15fac..6b8178b 100644 --- a/client/bemenu-run.c +++ b/client/bemenu-run.c @@ -10,6 +10,7 @@ static struct client client = { .filter_mode = BM_FILTER_MODE_DMENU, .title = "bemenu-run", + .monitor = -1, }; struct paths { diff --git a/client/bemenu.c b/client/bemenu.c index 6bdf797..ef893b3 100644 --- a/client/bemenu.c +++ b/client/bemenu.c @@ -7,6 +7,7 @@ static struct client client = { .filter_mode = BM_FILTER_MODE_DMENU, .title = "bemenu", + .monitor = -1, }; static void diff --git a/client/common/common.c b/client/common/common.c index 317a96c..5f738c2 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -309,9 +309,6 @@ do_getopt(struct client *client, int *argc, char **argv[]) * Either break the interface and make them --sf, --sb (like they are now), * or parse them before running getopt.. */ - /* Set default monitor index to -1 (maybe be overwritten with -m below). */ - client->monitor = -1; - for (optind = 0;;) { int32_t opt;