]> git.mdlowis.com Git - proto/labwc.git/commitdiff
desktop.c: fix typo to compile
authorJohan Malm <jgm323@gmail.com>
Fri, 24 Sep 2021 21:13:35 +0000 (22:13 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 24 Sep 2021 21:13:35 +0000 (22:13 +0100)
src/desktop.c

index c7e153b39960e5222bc9dae889bbe48b636b841c..f89a88a7ef2ac1638bd726025c6e6a8576a6b16a 100644 (file)
@@ -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;
 }