]> git.mdlowis.com Git - proto/labwc.git/commitdiff
deco.c: simplify initialization
authorJohan Malm <jgm323@gmail.com>
Mon, 15 Feb 2021 17:58:04 +0000 (17:58 +0000)
committerJohan Malm <jgm323@gmail.com>
Mon, 15 Feb 2021 17:58:04 +0000 (17:58 +0000)
src/deco.c

index 30cf113f07a4e2dbdb02b4d6f3b0644ff71377ab..4536a50eb467a270334d559792f76d38e6d25014 100644 (file)
@@ -39,7 +39,7 @@ deco_max_extents(struct view *view)
 struct wlr_box
 deco_box(struct view *view, enum deco_part deco_part)
 {
-       struct wlr_box box = { .x = 0, .y = 0, .width = 0, .height = 0 };
+       struct wlr_box box = { 0 };
        assert(view);
        switch (deco_part) {
        case LAB_DECO_BUTTON_CLOSE: