desktop: desktop_view_at() set *surface correnctly

Bug introduced in 23107
This commit is contained in:
Johan Malm 2021-09-25 09:40:23 +01:00
parent 05b89691b0
commit 23f28e5082

View 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;
}