Commit 680fd236 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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).

(cherry picked from commit d6e9b801)
parent 72ca5184
Pipeline #196088 passed with stage
in 31 minutes and 48 seconds
......@@ -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());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment