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:
parent
66ed2d39a0
commit
454f704647
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue