do not ask the deco for borders on every move

REVIEW: 114126
This commit is contained in:
Thomas Lübking 2013-11-25 23:45:31 +01:00
parent fac85516ad
commit c4d014eb8c

View file

@ -2807,11 +2807,7 @@ void Client::handleMoveResize(int x, int y, int x_root, int y_root)
// When doing a restricted move we must always keep 100px of the titlebar
// visible to allow the user to be able to move it again.
int frameLeft, frameRight, frameTop, frameBottom;
if (decoration)
decoration->borders(frameLeft, frameRight, frameTop, frameBottom);
else
frameTop = 10;
const int frameTop = border_top;
int titlebarArea = qMin(frameTop * 100, moveResizeGeom.width() * moveResizeGeom.height());
bool update = false;