bar: generic setup shouldn't be done by a backend

This commit is contained in:
Daniel Eklöf 2019-01-29 21:02:10 +01:00
parent c2e7b1c507
commit 4954479e11
2 changed files with 2 additions and 2 deletions

View file

@ -230,6 +230,8 @@ run(struct bar *_bar)
{ {
struct private *bar = _bar->private; struct private *bar = _bar->private;
bar->height_with_border = bar->height + 2 * bar->border.width;
if (!bar->backend.iface->setup(_bar)) if (!bar->backend.iface->setup(_bar))
return 1; return 1;

View file

@ -68,8 +68,6 @@ setup(struct bar *_bar)
return false; return false;
} }
bar->height_with_border = bar->height + 2 * bar->border.width;
/* Find monitor coordinates and width/height */ /* Find monitor coordinates and width/height */
bool found_monitor = false; bool found_monitor = false;
for (xcb_randr_monitor_info_iterator_t it = for (xcb_randr_monitor_info_iterator_t it =