mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 09:18:07 +00:00
kwin/mobiletaskswitcher: Ensure that touch borders are registered
This commit is contained in:
parent
fc2b70170f
commit
bc18b29ce3
1 changed files with 6 additions and 6 deletions
|
|
@ -70,9 +70,12 @@ void MobileTaskSwitcherEffect::reconfigure(ReconfigureFlags)
|
||||||
|
|
||||||
const QList<int> activateBorders = {ElectricBorder::ElectricBottom};
|
const QList<int> activateBorders = {ElectricBorder::ElectricBottom};
|
||||||
for (const int &border : activateBorders) {
|
for (const int &border : activateBorders) {
|
||||||
m_borderActivate.append(ElectricBorder(border));
|
ElectricBorder electricBorder = ElectricBorder(border);
|
||||||
effects->reserveElectricBorder(ElectricBorder(border), this);
|
m_borderActivate.append(electricBorder);
|
||||||
|
effects->reserveElectricBorder(electricBorder, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_border->setBorders(activateBorders);
|
||||||
}
|
}
|
||||||
|
|
||||||
int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
||||||
|
|
@ -82,10 +85,7 @@ int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
||||||
|
|
||||||
bool MobileTaskSwitcherEffect::borderActivated(ElectricBorder border)
|
bool MobileTaskSwitcherEffect::borderActivated(ElectricBorder border)
|
||||||
{
|
{
|
||||||
if (m_borderActivate.contains(border)) {
|
return m_borderActivate.contains(border);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MobileTaskSwitcherEffect::grabbedKeyboardEvent(QKeyEvent *keyEvent)
|
void MobileTaskSwitcherEffect::grabbedKeyboardEvent(QKeyEvent *keyEvent)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue