projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fb9440
)
wattrib doesnt get init-ed correctly when called from assert()
author
Marius Nita
<marius@cs.pdx.edu>
Mon, 11 Nov 2002 03:57:53 +0000
(
03:57
+0000)
committer
Marius Nita
<marius@cs.pdx.edu>
Mon, 11 Nov 2002 03:57:53 +0000
(
03:57
+0000)
src/client.cc
patch
|
blob
|
history
diff --git
a/src/client.cc
b/src/client.cc
index f770fecd9f842c6625ed89ced3a03ddaef487f46..32532f20fc5f41d9cc746baf0d80044dab4891f4 100644
(file)
--- 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;