From 7dc4ae36ca9425c36f238ff8b9fa7cf49622eed8 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 4 Aug 2021 21:43:07 +0100 Subject: [PATCH] view: initialise x+y variables to handle edge case --- src/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;