summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-11-30 09:08:26 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-11-30 09:08:26 +0000
commitc908820aaaf199ee4e7864ba48d337cc9141cea0 (patch)
tree9201d9b49c2fb0a6ac9ce564a1400f2da707c845
parent6dcbd633ef79bce5040a7bc6062f0895fe600456 (diff)
rmdfunc.h: added func decl for rmdErrorHandler
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@444 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r--recordmydesktop/include/rmdfunc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h
index de12ef1..b5bafd8 100644
--- a/recordmydesktop/include/rmdfunc.h
+++ b/recordmydesktop/include/rmdfunc.h
@@ -710,6 +710,22 @@ int RegisterShortcut(Display *dpy,
const char *shortcut,
HotKey *hotkey);
+/*
+ * Handling of X errors.
+ * Ignores, bad access when registering shortcuts
+ * and BadWindow on XQueryTree
+ *
+ * \param dpy Connection to the X Server
+ *
+ * \param e XErrorEvent struct containing error info
+ *
+ * \returns 0 on the two ignored cases, calls exit(1)
+ * otherwise.
+ *
+ */
+
+int rmdErrorHandler(Display *dpy,XErrorEvent *e);
+
#endif
© All Rights Reserved