]> Dogcows Code - chaz/openbox/commitdiff
wattrib doesnt get init-ed correctly when called from assert()
authorMarius Nita <marius@cs.pdx.edu>
Mon, 11 Nov 2002 03:57:53 +0000 (03:57 +0000)
committerMarius Nita <marius@cs.pdx.edu>
Mon, 11 Nov 2002 03:57:53 +0000 (03:57 +0000)
src/client.cc

index f770fecd9f842c6625ed89ced3a03ddaef487f46..32532f20fc5f41d9cc746baf0d80044dab4891f4 100644 (file)
@@ -272,7 +272,10 @@ void OBClient::getMwmHints()
 void OBClient::getArea()
 {
   XWindowAttributes wattrib;
-  assert(XGetWindowAttributes(otk::OBDisplay::display, _window, &wattrib));
+  Status ret;
+  
+  ret = XGetWindowAttributes(otk::OBDisplay::display, _window, &wattrib);
+  assert(ret != BadWindow);
 
   _area.setRect(wattrib.x, wattrib.y, wattrib.width, wattrib.height);
   _border_width = wattrib.border_width;
This page took 0.023476 seconds and 4 git commands to generate.