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,10 +640,13 @@ luaA_statusbar_newindex(lua_State *L)
|
|||
if(p != (*statusbar)->position)
|
||||
{
|
||||
(*statusbar)->position = p;
|
||||
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:
|
||||
luaA_checktable(L, 3);
|
||||
|
|
Loading…
Reference in New Issue