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:
parent
dfc6c87057
commit
d6e9b8011a
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue