From: Johan Malm Date: Wed, 4 Aug 2021 20:43:07 +0000 (+0100) Subject: view: initialise x+y variables to handle edge case X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=7dc4ae36ca9425c36f238ff8b9fa7cf49622eed8;p=proto%2Flabwc.git view: initialise x+y variables to handle edge case --- diff --git a/src/view.c b/src/view.c index e0f82b7b..42d720f7 100644 --- a/src/view.c +++ b/src/view.c @@ -147,7 +147,7 @@ view_move_to_edge(struct view *view, const char *direction) struct border border = view_border(view); struct wlr_box usable = output_usable_area_in_layout_coords(output); - int x, y; + int x = 0, y = 0; if (!strcasecmp(direction, "left")) { x = usable.x + border.left + GAP; y = view->y;