diff --git a/effects.cpp b/effects.cpp index 6a9c7c29e6..60242a6b28 100644 --- a/effects.cpp +++ b/effects.cpp @@ -1676,8 +1676,8 @@ EffectWindowList getMainWindows(Toplevel *toplevel) EffectWindowList EffectWindowImpl::mainWindows() const { - if (toplevel->isClient()) { - return getMainWindows(toplevel); + if (dynamic_cast(toplevel)) { + return getMainWindows(toplevel); } else if (toplevel->isDeleted()) { return getMainWindows(toplevel); }