statusbar: don't refresh screen if statusbar is not assigned one.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d310605a64
commit
4ceb4e8bde
|
@ -640,9 +640,12 @@ luaA_statusbar_newindex(lua_State *L)
|
||||||
if(p != (*statusbar)->position)
|
if(p != (*statusbar)->position)
|
||||||
{
|
{
|
||||||
(*statusbar)->position = p;
|
(*statusbar)->position = p;
|
||||||
for(s = globalconf.screens[(*statusbar)->screen].statusbar; s; s = s->next)
|
if((*statusbar)->screen != SCREEN_UNDEF)
|
||||||
statusbar_position_update(s);
|
{
|
||||||
ewmh_update_workarea((*statusbar)->phys_screen);
|
for(s = globalconf.screens[(*statusbar)->screen].statusbar; s; s = s->next)
|
||||||
|
statusbar_position_update(s);
|
||||||
|
ewmh_update_workarea((*statusbar)->phys_screen);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case A_TK_WIDGETS:
|
case A_TK_WIDGETS:
|
||||||
|
|
Loading…
Reference in New Issue