From: Johan Malm Date: Mon, 15 Feb 2021 17:58:04 +0000 (+0000) Subject: deco.c: simplify initialization X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=22654d51917383a48b24dd5f2ee2a2187fd7aa8a;p=proto%2Flabwc.git deco.c: simplify initialization --- diff --git a/src/deco.c b/src/deco.c index 30cf113f..4536a50e 100644 --- a/src/deco.c +++ b/src/deco.c @@ -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: