]> Dogcows Code - chaz/openbox/commitdiff
better fix for configure
authorDana Jansens <danakj@orodu.net>
Fri, 15 Nov 2002 05:07:32 +0000 (05:07 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 15 Nov 2002 05:07:32 +0000 (05:07 +0000)
otk/widget.cc

index 64277e709812724182f3f82fb9b1e6228831f24c..96d958cb84a71b0f9735469c9e25d9bb4a9e7fc6 100644 (file)
@@ -414,9 +414,10 @@ bool OtkWidget::configure(const XConfigureEvent &e)
       _ignore_config--;
     } else {
       std::cout << "configure\n";
-      if (!(e.width == _rect.width() && e.height == _rect.height()))
+      if (!(e.width == _rect.width() && e.height == _rect.height())) {
         _dirty = true;
-      _rect.setRect(_rect.x(), _rect.y(), e.width, e.height);
+        _rect.setSize(e.width, e.height);
+      }
       update();
     }
     return true;
This page took 0.022227 seconds and 4 git commands to generate.