]> git.mdlowis.com Git - proto/labwc.git/commitdiff
desktop: fix pointer de-reference typo
authorJohan Malm <jgm323@gmail.com>
Sat, 25 Sep 2021 07:37:24 +0000 (08:37 +0100)
committerJohan Malm <jgm323@gmail.com>
Sat, 25 Sep 2021 07:37:24 +0000 (08:37 +0100)
Bug introduced in 23107

src/desktop.c

index f89a88a7ef2ac1638bd726025c6e6a8576a6b16a..6e111edfceb3e5043a2c4a33fc461693e1c753bf 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;
        }