]> Dogcows Code - chaz/openbox/commitdiff
split the move and resize on the client window
authorDana Jansens <danakj@orodu.net>
Sat, 8 Feb 2003 09:19:40 +0000 (09:19 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 8 Feb 2003 09:19:40 +0000 (09:19 +0000)
src/frame.cc

index 5e9d852030fcc2b60f1be52202334d66a2dac867..5ffdc726ada7ea2bb9be421e99203d02fc664e97 100644 (file)
@@ -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;
This page took 0.024359 seconds and 4 git commands to generate.