desktop grid: set desktop when moving stickies

Notably on presentwindows invocation, there would
be no point in moving the window otherwise itfp
icc-effect-5.14.5
Thomas Lübking 2015-09-14 17:09:07 +02:00
parent 66ed2d39a0
commit 454f704647
1 changed files with 1 additions and 2 deletions

View File

@ -504,8 +504,7 @@ void DesktopGridEffect::windowInputMouseEvent(QEvent* e)
effects->moveWindow(windowMove, unscalePos(me->pos(), NULL) + windowMoveDiff, true, 1.0 / scale[screen]);
}
if (d != highlightedDesktop) {
if (!windowMove->isOnAllDesktops())
effects->windowToDesktop(windowMove, d); // Not true all desktop move
effects->windowToDesktop(windowMove, d); // Not true all desktop move
const int screen = effects->screenNumber(me->pos());
if (screen != windowMove->screen())
effects->windowToScreen(windowMove, screen);