From 4c66004fa8fdc23a1bb4fe54c5dd7fc6625efb9a Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Fri, 24 Sep 2021 22:13:35 +0100 Subject: [PATCH] desktop.c: fix typo to compile --- src/desktop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/desktop.c b/src/desktop.c index c7e153b3..f89a88a7 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -312,14 +312,14 @@ desktop_view_at(struct server *server, double lx, double ly, *surface = layer_surface_at( &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY], lx, ly, sx, sy); - if (surface) + if (surface) { return NULL; } *surface = layer_surface_at( &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP], lx, ly, sx, sy); - if (surface) + if (surface) { return NULL; } @@ -339,4 +339,5 @@ desktop_view_at(struct server *server, double lx, double ly, return view; } } + return NULL; } -- 2.52.0