summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-29 08:50:52 +0000
committerDana Jansens <danakj@orodu.net>2003-01-29 08:50:52 +0000
commit1862fd052f1843e54225fbc6f213e13c317cbca8 (patch)
tree09f128b4307f04b3542e333b3d38351949c8474b /otk
parent0c05f5d9c76d4c765022eb72dc03de6671c20734 (diff)
ignore errors when proxying configurerequests
Diffstat (limited to 'otk')
-rw-r--r--otk/eventdispatcher.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc
index bc2851c4..a1858eee 100644
--- a/otk/eventdispatcher.cc
+++ b/otk/eventdispatcher.cc
@@ -165,9 +165,13 @@ void EventDispatcher::dispatch(Window win, const XEvent &e)
xwc.border_width = e.xconfigurerequest.border_width;
xwc.sibling = e.xconfigurerequest.above;
xwc.stack_mode = e.xconfigurerequest.detail;
-
+
+ // we are not to be held responsible if someone sends us an invalid
+ // request!
+ display->setIgnoreErrors(true);
XConfigureWindow(**display, e.xconfigurerequest.window,
e.xconfigurerequest.value_mask, &xwc);
+ display->setIgnoreErrors(false);
} else {
// grab a falback if it exists
handler = _fallback;