From: Johan Malm Date: Sat, 25 Sep 2021 07:37:24 +0000 (+0100) Subject: desktop: fix pointer de-reference typo X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=05b89691b0dd042d4e3b9927b36ebe2cc57ab03b;p=proto%2Flabwc.git desktop: fix pointer de-reference typo Bug introduced in 23107 --- diff --git a/src/desktop.c b/src/desktop.c index f89a88a7..6e111edf 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -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; }