Use xcb for move/resize the wrapper

This commit is contained in:
Martin Gräßlin 2013-09-09 10:42:01 +02:00
parent 1398f9ed04
commit c616dd45fd

View file

@ -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();