desktop grid: set desktop when moving stickies

Notably on presentwindows invocation, there would
be no point in moving the window otherwise itfp
This commit is contained in:
Thomas Lübking 2015-09-14 17:09:07 +02:00
parent 66ed2d39a0
commit 454f704647

View file

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