From c616dd45fda88a5ab85d8782840b99d46f80b35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 9 Sep 2013 10:42:01 +0200 Subject: [PATCH] Use xcb for move/resize the wrapper --- geometry.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index 7c7d18fa8e..37069ea58c 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1913,8 +1913,7 @@ void Client::setGeometry(int x, int y, int w, int h, ForceGeometry_t force) XMoveResizeWindow(display(), frameId(), x, y, w, h); if (!isShade()) { QSize cs = clientSize(); - XMoveResizeWindow(display(), wrapperId(), clientPos().x(), clientPos().y(), - cs.width(), cs.height()); + m_wrapper.setGeometry(QRect(clientPos(), cs)); if (!isResize() || syncRequest.counter == XCB_NONE) XMoveResizeWindow(display(), window(), 0, 0, cs.width(), cs.height()); // SELI - won't this be too expensive? @@ -2003,8 +2002,7 @@ void Client::plainResize(int w, int h, ForceGeometry_t force) // resizeDecoration( s ); if (!isShade()) { QSize cs = clientSize(); - XMoveResizeWindow(display(), wrapperId(), clientPos().x(), clientPos().y(), - cs.width(), cs.height()); + m_wrapper.setGeometry(QRect(clientPos(), cs)); XMoveResizeWindow(display(), window(), 0, 0, cs.width(), cs.height()); } updateShape();