]> git.mdlowis.com Git - proto/labwc.git/commitdiff
desktop: desktop_view_at() set *surface correnctly
authorJohan Malm <jgm323@gmail.com>
Sat, 25 Sep 2021 08:40:23 +0000 (09:40 +0100)
committerJohan Malm <jgm323@gmail.com>
Sat, 25 Sep 2021 08:40:23 +0000 (09:40 +0100)
Bug introduced in 23107

src/desktop.c

index 6e111edfceb3e5043a2c4a33fc461693e1c753bf..2e113224e8315294903b187247f7caac0c38b679 100644 (file)
@@ -339,5 +339,18 @@ desktop_view_at(struct server *server, double lx, double ly,
                        return view;
                }
        }
+
+       *surface = layer_surface_at(
+                       &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM],
+                       lx, ly, sx, sy);
+       if (*surface) {
+               return NULL;
+       }
+       *surface = layer_surface_at(
+                       &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND],
+                       lx, ly, sx, sy);
+       if (*surface) {
+               return NULL;
+       }
        return NULL;
 }