forked from external/yambar
bar/wayland: handle failure to set initial size in setup()
This commit is contained in:
parent
58038a4236
commit
d40220e511
1 changed files with 2 additions and 1 deletions
|
@ -1025,7 +1025,8 @@ setup(struct bar *_bar)
|
||||||
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT |
|
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT |
|
||||||
top_or_bottom);
|
top_or_bottom);
|
||||||
|
|
||||||
update_size(backend);
|
if (!update_size(backend))
|
||||||
|
return false;
|
||||||
|
|
||||||
assert(backend->monitor == NULL ||
|
assert(backend->monitor == NULL ||
|
||||||
backend->width / backend->monitor->scale <= backend->monitor->width_px);
|
backend->width / backend->monitor->scale <= backend->monitor->width_px);
|
||||||
|
|
Loading…
Add table
Reference in a new issue