[statusbar] Need arrange on every position change
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
05bb1d3833
commit
aa33db169a
|
@ -113,6 +113,8 @@ statusbar_position_update(statusbar_t *statusbar, position_t position)
|
||||||
xcb_screen_t *s = NULL;
|
xcb_screen_t *s = NULL;
|
||||||
bool ignore = false;
|
bool ignore = false;
|
||||||
|
|
||||||
|
globalconf.screens[statusbar->screen].need_arrange = true;
|
||||||
|
|
||||||
simplewindow_delete(&statusbar->sw);
|
simplewindow_delete(&statusbar->sw);
|
||||||
draw_context_delete(&statusbar->ctx);
|
draw_context_delete(&statusbar->ctx);
|
||||||
|
|
||||||
|
@ -294,7 +296,6 @@ statusbar_position_update(statusbar_t *statusbar, position_t position)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalconf.screens[statusbar->screen].need_arrange = true;
|
|
||||||
xcb_map_window(globalconf.connection, statusbar->sw->window);
|
xcb_map_window(globalconf.connection, statusbar->sw->window);
|
||||||
statusbar_draw(statusbar);
|
statusbar_draw(statusbar);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue