From e4fa1c5a71fd8719ead9c9b9211c142c4970dcca Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 8 Feb 2003 09:19:40 +0000 Subject: [PATCH] split the move and resize on the client window --- src/frame.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frame.cc b/src/frame.cc index 5e9d8520..5ffdc726 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -287,10 +287,12 @@ void Frame::adjustSize() _innersize.top + _innersize.bottom + _client->area().height())); - XMoveResizeWindow(**otk::display, _plate, - _innersize.left - geom.cbwidth, - _innersize.top - geom.cbwidth, - _client->area().width(), _client->area().height()); + // do this in two steps because clients whose gravity is set to + // 'Static' don't end up getting moved at all with an XMoveResizeWindow + XMoveWindow(**otk::display, _plate, _innersize.left - geom.cbwidth, + _innersize.top - geom.cbwidth); + XResizeWindow(**otk::display, _plate, _client->area().width(), + _client->area().height()); _size.left = _innersize.left + geom.bwidth; _size.right = _innersize.right + geom.bwidth; -- 2.39.2