effects/slide: Save correct current position

effects->desktopCoords() returns the position of the desktop in pixels,
while we want the desktop grid coords, i.e. if the virtual desktop is in
the first row, second column, we want m_currentPosition to be (1, 0).
This commit is contained in:
Vlad Zahorodnii 2022-06-27 10:29:18 +03:00
parent dfc6c87057
commit d6e9b8011a

View file

@ -42,7 +42,7 @@ SlideEffect::SlideEffect()
connect(effects, &EffectsHandler::screenRemoved,
this, &SlideEffect::finishedSwitching);
m_currentPosition = effects->desktopCoords(effects->currentDesktop());
m_currentPosition = effects->desktopGridCoords(effects->currentDesktop());
}
SlideEffect::~SlideEffect()