From 5c7aabd7791fc6715ca9fa5fe89a8b79d9ae23a5 Mon Sep 17 00:00:00 2001 From: Marius Nita Date: Mon, 11 Nov 2002 03:57:53 +0000 Subject: [PATCH] wattrib doesnt get init-ed correctly when called from assert() --- src/client.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client.cc b/src/client.cc index f770fecd..32532f20 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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; -- 2.45.2