mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 14:43:09 +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};
|
||||
for (const int &border : activateBorders) {
|
||||
m_borderActivate.append(ElectricBorder(border));
|
||||
effects->reserveElectricBorder(ElectricBorder(border), this);
|
||||
ElectricBorder electricBorder = ElectricBorder(border);
|
||||
m_borderActivate.append(electricBorder);
|
||||
effects->reserveElectricBorder(electricBorder, this);
|
||||
}
|
||||
|
||||
m_border->setBorders(activateBorders);
|
||||
}
|
||||
|
||||
int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
||||
|
|
@ -82,10 +85,7 @@ int MobileTaskSwitcherEffect::requestedEffectChainPosition() const
|
|||
|
||||
bool MobileTaskSwitcherEffect::borderActivated(ElectricBorder border)
|
||||
{
|
||||
if (m_borderActivate.contains(border)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return m_borderActivate.contains(border);
|
||||
}
|
||||
|
||||
void MobileTaskSwitcherEffect::grabbedKeyboardEvent(QKeyEvent *keyEvent)
|
||||
|
|
|
|||
Loading…
Reference in a new issue