view: is_toplevel() deal with !view

This commit is contained in:
Johan Malm 2020-08-12 19:44:54 +01:00
parent fc2754ac89
commit c6c73366d2

View file

@ -2,6 +2,8 @@
static bool is_toplevel(struct view *view)
{
if (!view)
return false;
if (!view->been_mapped)
return false;
switch (view->type) {