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)
|
||||
{
|
||||
(*statusbar)->position = p;
|
||||
for(s = globalconf.screens[(*statusbar)->screen].statusbar; s; s = s->next)
|
||||
statusbar_position_update(s);
|
||||
ewmh_update_workarea((*statusbar)->phys_screen);
|
||||
if((*statusbar)->screen != SCREEN_UNDEF)
|
||||
{
|
||||
for(s = globalconf.screens[(*statusbar)->screen].statusbar; s; s = s->next)
|
||||
statusbar_position_update(s);
|
||||
ewmh_update_workarea((*statusbar)->phys_screen);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case A_TK_WIDGETS:
|
||||
|
|
Loading…
Reference in New Issue