checkWorspacePosition on screen changes only

REVIEW: 103029
BUG: 283302
This commit is contained in:
Thomas Lübking 2011-11-02 21:13:47 +01:00
parent ad950f71ab
commit a3e268e737
2 changed files with 3 additions and 1 deletions

View file

@ -586,6 +586,7 @@ private:
Window move_resize_grab_window;
bool move_resize_has_keyboard_grab;
bool unrestrictedMoveResize;
int moveResizeStartScreen;
Position mode;
QPoint moveOffset;

View file

@ -2580,6 +2580,7 @@ bool Client::startMoveResize()
}
moveResizeMode = true;
moveResizeStartScreen = screen();
workspace()->setClientIsMoving(this);
initialMoveResizeGeom = moveResizeGeom = geometry();
checkUnrestrictedMoveResize();
@ -2644,7 +2645,7 @@ void Client::finishMoveResize(bool cancel)
setGeometry(initialMoveResizeGeom);
else
setGeometry(moveResizeGeom);
if (maximizeMode() != MaximizeRestore)
if (screen() != moveResizeStartScreen && maximizeMode() != MaximizeRestore)
checkWorkspacePosition();
}
#else