deco: add missing return type

This commit is contained in:
Johan Malm 2020-08-19 21:06:27 +01:00
parent eabeb70081
commit 814ea5cb11

View file

@ -38,7 +38,7 @@ struct wlr_box deco_box(struct view *view, enum deco_part deco_part)
if ((view->surface->current.width < 1) ||
(view->surface->current.height < 1)) {
warn("view (%p) has no width/height", view);
return;
return box;
}
switch (deco_part) {
case LAB_DECO_BUTTON_CLOSE: