diff options
| author | Marius Nita <marius@cs.pdx.edu> | 2002-11-11 03:57:53 +0000 |
|---|---|---|
| committer | Marius Nita <marius@cs.pdx.edu> | 2002-11-11 03:57:53 +0000 |
| commit | 5c7aabd7791fc6715ca9fa5fe89a8b79d9ae23a5 (patch) | |
| tree | 97e9366e55447fc33455fdc8f8d7a7af31c6da3a | |
| parent | 2fb944068494f9b6ef97c28aac0c0d814d9bd607 (diff) | |
wattrib doesnt get init-ed correctly when called from assert()
| -rw-r--r-- | src/client.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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; |
