bar/wayland: handle failure to set initial size in setup()

This commit is contained in:
Daniel Eklöf 2021-11-15 18:06:10 +01:00
parent 58038a4236
commit d40220e511
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1025,7 +1025,8 @@ setup(struct bar *_bar)
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT |
top_or_bottom);
update_size(backend);
if (!update_size(backend))
return false;
assert(backend->monitor == NULL ||
backend->width / backend->monitor->scale <= backend->monitor->width_px);