split the move and resize on the client window
This commit is contained in:
parent
ef231de58a
commit
e4fa1c5a71
1 changed files with 6 additions and 4 deletions
10
src/frame.cc
10
src/frame.cc
|
@ -287,10 +287,12 @@ void Frame::adjustSize()
|
||||||
_innersize.top + _innersize.bottom +
|
_innersize.top + _innersize.bottom +
|
||||||
_client->area().height()));
|
_client->area().height()));
|
||||||
|
|
||||||
XMoveResizeWindow(**otk::display, _plate,
|
// do this in two steps because clients whose gravity is set to
|
||||||
_innersize.left - geom.cbwidth,
|
// 'Static' don't end up getting moved at all with an XMoveResizeWindow
|
||||||
_innersize.top - geom.cbwidth,
|
XMoveWindow(**otk::display, _plate, _innersize.left - geom.cbwidth,
|
||||||
_client->area().width(), _client->area().height());
|
_innersize.top - geom.cbwidth);
|
||||||
|
XResizeWindow(**otk::display, _plate, _client->area().width(),
|
||||||
|
_client->area().height());
|
||||||
|
|
||||||
_size.left = _innersize.left + geom.bwidth;
|
_size.left = _innersize.left + geom.bwidth;
|
||||||
_size.right = _innersize.right + geom.bwidth;
|
_size.right = _innersize.right + geom.bwidth;
|
||||||
|
|
Loading…
Reference in a new issue