Don't block screen edge for fullscreen effects

Otherwise in overview effect you cannot go back out the way you came.

Tested-by: Merge Service <https://invent.kde.org/plasma/kwin/-/merge_requests/2416>
Part-of: <https://invent.kde.org/plasma/kwin/-/merge_requests/2416>
This commit is contained in:
Kai Uwe Broulik 2022-05-17 19:24:04 +02:00 committed by Nicolás Alvarez
parent d143f6e3c4
commit f013dc410e
2 changed files with 2 additions and 1 deletions

View file

@ -587,6 +587,7 @@ void EffectsHandlerImpl::setActiveFullScreenEffect(Effect *e)
}
}
Q_EMIT hasActiveFullScreenEffectChanged();
ScreenEdges::self()->checkBlocking();
}
}

View file

@ -576,7 +576,7 @@ void Edge::setGeometry(const QRect &geometry)
void Edge::checkBlocking()
{
Window *client = Workspace::self()->activeWindow();
const bool newValue = !m_edges->remainActiveOnFullscreen() && client && client->isFullScreen() && client->frameGeometry().contains(m_geometry.center());
const bool newValue = !m_edges->remainActiveOnFullscreen() && client && client->isFullScreen() && client->frameGeometry().contains(m_geometry.center()) && !(effects && effects->hasActiveFullScreenEffect());
if (newValue == m_blocked) {
return;
}