Commit d6e9b801 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).
parent dfc6c870
Pipeline #196084 failed with stage
in 33 minutes and 57 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());
}
SlideEffect::~SlideEffect()
......
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