wattrib doesnt get init-ed correctly when called from assert()
This commit is contained in:
parent
2fb9440684
commit
5c7aabd779
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue