Pass through mainClients for AbstractClient in EffectWindowImpl
This commit is contained in:
parent
f84b4758f2
commit
c4f02a6677
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue