From d6e9b8011ac2d1285b3cfee485a2afe707726583 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 27 Jun 2022 10:29:18 +0300 Subject: [PATCH] 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). --- src/effects/slide/slide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/slide/slide.cpp b/src/effects/slide/slide.cpp index b1c0455ceb..e51376c97c 100644 --- a/src/effects/slide/slide.cpp +++ b/src/effects/slide/slide.cpp @@ -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()