summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-29 08:50:30 +0000
committerDana Jansens <danakj@orodu.net>2003-01-29 08:50:30 +0000
commit0c05f5d9c76d4c765022eb72dc03de6671c20734 (patch)
tree9f267efd72474635af660b9b21509c6127d2ddd1
parent0f2bcee0cdad317a86230b43f437e0243165277b (diff)
allow for ignoring x errors.
-rw-r--r--otk/display.hh14
1 files changed, 8 insertions, 6 deletions
diff --git a/otk/display.hh b/otk/display.hh
index e8613a04..db9834d9 100644
--- a/otk/display.hh
+++ b/otk/display.hh
@@ -53,6 +53,9 @@ private:
//! The number of requested grabs on the display
int _grab_count;
+ //! When true, X errors will be ignored. Use with care.
+ bool _ignore_errors;
+
//! A list of information for all screens on the display
ScreenInfo** _screeninfo_list;
@@ -60,12 +63,6 @@ private:
//! screen
RenderControl** _rendercontrol_list;
- // Handles X errors on the display
- /*
- Displays the error if compiled for debugging.
- */
- //int xerrorHandler(::Display *d, XErrorEvent *e);
-
public:
//! Initializes the class, opens the X display
/*!
@@ -109,6 +106,11 @@ public:
inline ::Display* operator*() const { return _display; }
+ //! When true, X errors will be ignored.
+ inline bool ignoreErrors() const { return _ignore_errors; }
+ //! Set whether X errors should be ignored. Use with care.
+ void setIgnoreErrors(bool t);
+
//! Grabs the display
void grab();