mirror of
https://github.com/Cloudef/bemenu
synced 2024-11-23 01:12:01 +01:00
fix ignored --monitor in BEMENU_OPTS env var
This commit is contained in:
parent
1ef789fea6
commit
7da8796291
@ -10,6 +10,7 @@
|
|||||||
static struct client client = {
|
static struct client client = {
|
||||||
.filter_mode = BM_FILTER_MODE_DMENU,
|
.filter_mode = BM_FILTER_MODE_DMENU,
|
||||||
.title = "bemenu-run",
|
.title = "bemenu-run",
|
||||||
|
.monitor = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct paths {
|
struct paths {
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
static struct client client = {
|
static struct client client = {
|
||||||
.filter_mode = BM_FILTER_MODE_DMENU,
|
.filter_mode = BM_FILTER_MODE_DMENU,
|
||||||
.title = "bemenu",
|
.title = "bemenu",
|
||||||
|
.monitor = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
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),
|
* Either break the interface and make them --sf, --sb (like they are now),
|
||||||
* or parse them before running getopt.. */
|
* or parse them before running getopt.. */
|
||||||
|
|
||||||
/* Set default monitor index to -1 (maybe be overwritten with -m below). */
|
|
||||||
client->monitor = -1;
|
|
||||||
|
|
||||||
for (optind = 0;;) {
|
for (optind = 0;;) {
|
||||||
int32_t opt;
|
int32_t opt;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user