Only try to deactivate overview whilst activate
BUG: 441325
This commit is contained in:
parent
fbff8636b9
commit
2fb52274d0
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ OverviewEffect::OverviewEffect()
|
|||
m_toggleShortcut = KGlobalAccel::self()->shortcut(m_toggleAction);
|
||||
effects->registerGlobalShortcut({defaultToggleShortcut}, m_toggleAction);
|
||||
|
||||
connect(effects, &EffectsHandler::screenAboutToLock, this, &OverviewEffect::realDeactivate);
|
||||
connect(effects, &EffectsHandler::screenAboutToLock, this, [this]() {
|
||||
if (m_activated) {
|
||||
realDeactivate();
|
||||
}
|
||||
});
|
||||
|
||||
initConfig<OverviewConfig>();
|
||||
reconfigure(ReconfigureAll);
|
||||
|
|
Loading…
Reference in a new issue