plugins/overview: Make screen edge toggle overview rather than cycle between modes

The user may have no usecase for the grid view mode, i.e. they may want
to activate overview, do their thing, and then return back to normal
desktop. However, with the current behavior, there's one extra step
(switch to grid mode) in order to go back to desktop.

In hindsight, we should have added different screen edge actions for
overview and grid modes. This can be done in 6.1.

BUG: 481335
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent be3823e826
commit f77f5b2342
  1. 2
      src/plugins/overview/overvieweffect.cpp

@ -269,7 +269,7 @@ int OverviewEffect::requestedEffectChainPosition() const
bool OverviewEffect::borderActivated(ElectricBorder border)
{
if (m_borderActivate.contains(border)) {
cycle();
m_overviewState->toggle();
return true;
}
return false;

Loading…
Cancel
Save