X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Fwidget.cc;h=e53e3585e395b792173362b5c696a31345412a24;hb=f94dc995c60462a2e308c61123ede83cc8680736;hp=4ba2c806f129382f70775beae015acac7b841840;hpb=c97915f445017d36667a6ad32767fa41d14d23b1;p=chaz%2Fopenbox diff --git a/otk/widget.cc b/otk/widget.cc index 4ba2c806..e53e3585 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -153,8 +153,11 @@ void Widget::setGeometry(int x, int y, int width, int height) _rect = Rect(x, y, width, height); _dirty = true; - XMoveResizeWindow(**display, _window, x, y, width, height); - _ignore_config++; + // don't use an XMoveResizeWindow here, because it doesn't seem to move + // windows with StaticGravity? This works, that didn't. + XResizeWindow(**display, _window, width, height); + XMoveWindow(**display, _window, x, y); + _ignore_config+=2; } void Widget::show(bool recursive)