From: Johan Malm Date: Sat, 25 Sep 2021 08:40:23 +0000 (+0100) Subject: desktop: desktop_view_at() set *surface correnctly X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=23f28e5082d5e122b7db49a4f9031a2530ea6f77;p=proto%2Flabwc.git desktop: desktop_view_at() set *surface correnctly Bug introduced in 23107 --- 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; }