1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-11-22 17:02:05 +01:00

fix ignored --monitor in BEMENU_OPTS env var

This commit is contained in:
Richard Kraus 2022-09-18 00:20:30 +02:00 committed by Jari Vetoniemi
parent 1ef789fea6
commit 7da8796291
3 changed files with 2 additions and 3 deletions

@ -10,6 +10,7 @@
static struct client client = {
.filter_mode = BM_FILTER_MODE_DMENU,
.title = "bemenu-run",
.monitor = -1,
};
struct paths {

@ -7,6 +7,7 @@
static struct client client = {
.filter_mode = BM_FILTER_MODE_DMENU,
.title = "bemenu",
.monitor = -1,
};
static void

@ -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;