From 4954479e119796c26dbf171953cc584e584b95e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 29 Jan 2019 21:02:10 +0100 Subject: [PATCH] bar: generic setup shouldn't be done by a backend --- bar/bar.c | 2 ++ bar/xcb.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bar/bar.c b/bar/bar.c index aff1bc0..aab67ab 100644 --- a/bar/bar.c +++ b/bar/bar.c @@ -230,6 +230,8 @@ run(struct bar *_bar) { struct private *bar = _bar->private; + bar->height_with_border = bar->height + 2 * bar->border.width; + if (!bar->backend.iface->setup(_bar)) return 1; diff --git a/bar/xcb.c b/bar/xcb.c index 35da106..bb9c6c6 100644 --- a/bar/xcb.c +++ b/bar/xcb.c @@ -68,8 +68,6 @@ setup(struct bar *_bar) return false; } - bar->height_with_border = bar->height + 2 * bar->border.width; - /* Find monitor coordinates and width/height */ bool found_monitor = false; for (xcb_randr_monitor_info_iterator_t it =