check that screen number in rules is not >= screen count
This commit is contained in:
parent
f70424487e
commit
4d3468d3a2
2
config.c
2
config.c
|
@ -454,6 +454,8 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
|
||||||
awesomeconf->rules[i].tags = NULL;
|
awesomeconf->rules[i].tags = NULL;
|
||||||
awesomeconf->rules[i].isfloating = cfg_getbool(cfgsectmp, "float");
|
awesomeconf->rules[i].isfloating = cfg_getbool(cfgsectmp, "float");
|
||||||
awesomeconf->rules[i].screen = cfg_getint(cfgsectmp, "screen");
|
awesomeconf->rules[i].screen = cfg_getint(cfgsectmp, "screen");
|
||||||
|
if(awesomeconf->rules[i].screen >= get_screen_count(awesomeconf->display))
|
||||||
|
awesomeconf->rules[i].screen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
compileregs(awesomeconf->rules, awesomeconf->nrules);
|
compileregs(awesomeconf->rules, awesomeconf->nrules);
|
||||||
|
|
Loading…
Reference in New Issue