remove touch border reservations that broke initial gesture usage

setBorder already reserves/unreserves touch borders appropriately, doing that manually beforehand only led to the gesture not working (double reservation?) until using the action drawer once
This commit is contained in:
Luis Büchi 2024-04-05 18:39:30 +02:00
parent c412441ff3
commit 7d23e94f81
2 changed files with 2 additions and 16 deletions

View file

@ -63,21 +63,7 @@ MobileTaskSwitcherEffect::~MobileTaskSwitcherEffect()
void MobileTaskSwitcherEffect::reconfigure(ReconfigureFlags)
{
setAnimationDuration(animationTime(300ms));
for (const ElectricBorder &border : std::as_const(m_borderActivate)) {
effects->unreserveElectricBorder(border, this);
}
m_borderActivate.clear();
const QList<int> activateBorders = {ElectricBorder::ElectricBottom};
for (const int &border : activateBorders) {
ElectricBorder electricBorder = ElectricBorder(border);
m_borderActivate.append(electricBorder);
effects->reserveElectricBorder(electricBorder, this);
}
m_border->setBorders(activateBorders);
m_border->setBorders(m_borderActivate);
}
int MobileTaskSwitcherEffect::requestedEffectChainPosition() const

View file

@ -61,7 +61,7 @@ Q_SIGNALS:
private:
EffectTogglableState *const m_taskSwitcherState;
EffectTogglableTouchBorder *const m_border;
QList<ElectricBorder> m_borderActivate;
QList<int> m_borderActivate = {ElectricBorder::ElectricBottom};
QAction *m_realtimeToggleAction = nullptr;
QAction *m_toggleAction = nullptr;