From 23f28e5082d5e122b7db49a4f9031a2530ea6f77 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sat, 25 Sep 2021 09:40:23 +0100 Subject: [PATCH] desktop: desktop_view_at() set *surface correnctly Bug introduced in 23107 --- src/desktop.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/desktop.c b/src/desktop.c index 6e111edf..2e113224 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -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; } -- 2.52.0