mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-25 13:25:39 +02:00
bar: generic setup shouldn't be done by a backend
This commit is contained in:
parent
c2e7b1c507
commit
4954479e11
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Add table
Reference in a new issue