wattrib doesnt get init-ed correctly when called from assert()

This commit is contained in:
Marius Nita 2002-11-11 03:57:53 +00:00
parent 2fb9440684
commit 5c7aabd779

View 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;