mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
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:
parent
c412441ff3
commit
7d23e94f81
2 changed files with 2 additions and 16 deletions
|
|
@ -63,21 +63,7 @@ MobileTaskSwitcherEffect::~MobileTaskSwitcherEffect()
|
||||||
void MobileTaskSwitcherEffect::reconfigure(ReconfigureFlags)
|
void MobileTaskSwitcherEffect::reconfigure(ReconfigureFlags)
|
||||||
{
|
{
|
||||||
setAnimationDuration(animationTime(300ms));
|
setAnimationDuration(animationTime(300ms));
|
||||||
|
m_border->setBorders(m_borderActivate);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ Q_SIGNALS:
|
||||||
private:
|
private:
|
||||||
EffectTogglableState *const m_taskSwitcherState;
|
EffectTogglableState *const m_taskSwitcherState;
|
||||||
EffectTogglableTouchBorder *const m_border;
|
EffectTogglableTouchBorder *const m_border;
|
||||||
QList<ElectricBorder> m_borderActivate;
|
QList<int> m_borderActivate = {ElectricBorder::ElectricBottom};
|
||||||
|
|
||||||
QAction *m_realtimeToggleAction = nullptr;
|
QAction *m_realtimeToggleAction = nullptr;
|
||||||
QAction *m_toggleAction = nullptr;
|
QAction *m_toggleAction = nullptr;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue