From c4d014eb8cfd29d479168d417e3564b6972fb7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 25 Nov 2013 23:45:31 +0100 Subject: [PATCH] do not ask the deco for borders on every move REVIEW: 114126 --- geometry.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index e0d0aebdac..d090a57956 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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;