summaryrefslogtreecommitdiff
path: root/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 0aebc12..02768c2 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -79,14 +79,19 @@ void Aquamarine::trapXError (void)
oldErrorHandler = XSetErrorHandler (xErrorHandler);
}
-int Aquamarine::popXError (void)
+int Aquamarine::popXError (Display *dpy)
{
- XSync (qt_xdisplay(), false);
+ XSync (dpy, false);
XSetErrorHandler (oldErrorHandler);
return trappedErrorCode;
}
+int Aquamarine::popXError (void)
+{
+ return popXError(qt_xdisplay());
+}
+
void *Aquamarine::readXProperty (WId window,
Atom property,
Atom type,