From c4f02a66776ef63dcd22634ef414ce1eee13ba81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 14 Sep 2015 14:35:01 +0200 Subject: [PATCH] Pass through mainClients for AbstractClient in EffectWindowImpl --- effects.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }