Remove AbstractClient plumbing casts in AbstractClient
This commit is contained in:
parent
a429739f98
commit
817656cb0b
1 changed files with 2 additions and 2 deletions
|
@ -2472,8 +2472,8 @@ bool AbstractClient::performMouseCommand(Options::MouseCommand cmd, const QPoint
|
||||||
auto it = workspace()->stackingOrder().constEnd(),
|
auto it = workspace()->stackingOrder().constEnd(),
|
||||||
begin = workspace()->stackingOrder().constBegin();
|
begin = workspace()->stackingOrder().constBegin();
|
||||||
while (mustReplay && --it != begin && *it != this) {
|
while (mustReplay && --it != begin && *it != this) {
|
||||||
auto c = static_cast<AbstractClient *>((*it)->isClient() ? *it : nullptr);
|
auto c = *it;
|
||||||
if (!c || (c->keepAbove() && !keepAbove()) || (keepBelow() && !c->keepBelow())) {
|
if (!c->isClient() || (c->keepAbove() && !keepAbove()) || (keepBelow() && !c->keepBelow())) {
|
||||||
continue; // can never raise above "it"
|
continue; // can never raise above "it"
|
||||||
}
|
}
|
||||||
mustReplay = !(c->isOnCurrentDesktop() && c->isOnCurrentActivity() && c->frameGeometry().intersects(frameGeometry()));
|
mustReplay = !(c->isOnCurrentDesktop() && c->isOnCurrentActivity() && c->frameGeometry().intersects(frameGeometry()));
|
||||||
|
|
Loading…
Reference in a new issue