checkWorspacePosition on screen changes only
REVIEW: 103029 BUG: 283302
This commit is contained in:
parent
ad950f71ab
commit
a3e268e737
2 changed files with 3 additions and 1 deletions
1
client.h
1
client.h
|
@ -586,6 +586,7 @@ private:
|
|||
Window move_resize_grab_window;
|
||||
bool move_resize_has_keyboard_grab;
|
||||
bool unrestrictedMoveResize;
|
||||
int moveResizeStartScreen;
|
||||
|
||||
Position mode;
|
||||
QPoint moveOffset;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue