From: Johan Malm Date: Wed, 12 Aug 2020 18:44:54 +0000 (+0100) Subject: view: is_toplevel() deal with !view X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c6c73366d25fa8932fc47b53d19db0bcfb6e8950;p=proto%2Flabwc.git view: is_toplevel() deal with !view --- diff --git a/src/view.c b/src/view.c index 54191de8..624ee8a0 100644 --- a/src/view.c +++ b/src/view.c @@ -2,6 +2,8 @@ static bool is_toplevel(struct view *view) { + if (!view) + return false; if (!view->been_mapped) return false; switch (view->type) {