Rule for titlebar applies event if we restart; set default to auto, which means off

This commit is contained in:
Julien Danjou 2008-03-15 09:43:58 +01:00
parent bd7b718166
commit f9f75629e1
2 changed files with 4 additions and 4 deletions

View File

@ -392,14 +392,13 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
if(rule->opacity >= 0.0f)
window_settrans(c->win, rule->opacity);
if(rule->titlebar.position != Auto)
c->titlebar.position = rule->titlebar.position;
}
else
move_client_to_screen(c, screen, True);
}
if(rule && rule->titlebar.position != Auto)
c->titlebar.position = rule->titlebar.position;
switch(c->titlebar.position)
{
@ -416,6 +415,7 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
0);
break;
default:
c->titlebar.position = Off;
break;
}

View File

@ -69,7 +69,7 @@ cfg_awesome_include(cfg_t *cfg, cfg_opt_t *opt,
cfg_opt_t titlebar_opts[] =
{
CFG_STR((char *) "position", (char *) "off", CFGF_NONE),
CFG_STR((char *) "position", (char *) "auto", CFGF_NONE),
CFG_STR((char *) "icon", (char *) "left", CFGF_NONE),
CFG_AWESOME_END()
};