fix bug with parsing barpos
This commit is contained in:
parent
ca125f1ac4
commit
2535e92ff6
11
config.c
11
config.c
|
@ -314,13 +314,10 @@ parse_config(Display * disp, int scr, DC * drawcontext, awesome_config *awesomec
|
||||||
/* barpos */
|
/* barpos */
|
||||||
tmp = config_lookup_string(&awesomelibconf, "awesome.barpos");
|
tmp = config_lookup_string(&awesomelibconf, "awesome.barpos");
|
||||||
|
|
||||||
if(tmp)
|
if(tmp && !strncmp(tmp, "BarOff", 6))
|
||||||
{
|
awesomeconf->statusbar_default_position = BarOff;
|
||||||
if(!strncmp(tmp, "BarOff", 6))
|
else if(tmp && !strncmp(tmp, "BarBot", 6))
|
||||||
awesomeconf->statusbar_default_position = BarOff;
|
awesomeconf->statusbar_default_position = BarBot;
|
||||||
else if(!strncmp(tmp, "BarBot", 6))
|
|
||||||
awesomeconf->statusbar_default_position = BarBot;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
awesomeconf->statusbar_default_position = BarTop;
|
awesomeconf->statusbar_default_position = BarTop;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue