Rule for titlebar applies event if we restart; set default to auto, which means off
This commit is contained in:
parent
bd7b718166
commit
f9f75629e1
6
client.c
6
client.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue