Pass through mainClients for AbstractClient in EffectWindowImpl

This commit is contained in:
Martin Gräßlin 2015-09-14 14:35:01 +02:00
parent f84b4758f2
commit c4f02a6677

View file

@ -1676,8 +1676,8 @@ EffectWindowList getMainWindows(Toplevel *toplevel)
EffectWindowList EffectWindowImpl::mainWindows() const
{
if (toplevel->isClient()) {
return getMainWindows<Client>(toplevel);
if (dynamic_cast<AbstractClient*>(toplevel)) {
return getMainWindows<AbstractClient>(toplevel);
} else if (toplevel->isDeleted()) {
return getMainWindows<Deleted>(toplevel);
}