do not ask the deco for borders on every move
REVIEW: 114126
This commit is contained in:
parent
fac85516ad
commit
c4d014eb8c
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue