]> Dogcows Code - chaz/openbox/commitdiff
only do shit if the size changed
authorDana Jansens <danakj@orodu.net>
Fri, 15 Nov 2002 03:11:35 +0000 (03:11 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 15 Nov 2002 03:11:35 +0000 (03:11 +0000)
otk/button.cc

index 410f00838bcf37eb7179ad0e8b978a4e15855eaa..e93762ec678f88736fc453e250f140f35f320d36 100644 (file)
@@ -74,7 +74,8 @@ bool OtkButton::expose(const XExposeEvent &e)
 
 bool OtkButton::configure(const XConfigureEvent &e)
 {
-  _dirty = true;
+  if (!(e.width == width() && e.height == height()))
+    _dirty = true;
   return OtkFocusWidget::configure(e);
 }
 
This page took 0.02655 seconds and 4 git commands to generate.