]> git.mdlowis.com Git - proto/labwc.git/commitdiff
deco: add missing return type
authorJohan Malm <jgm323@gmail.com>
Wed, 19 Aug 2020 20:06:27 +0000 (21:06 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 19 Aug 2020 20:06:27 +0000 (21:06 +0100)
src/deco.c

index c89c11f80b1d6129257a59b11514e3aa9ea43f50..6ad7b82e86c345327aeeede3daecd754d00a0bac 100644 (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: