From c908820aaaf199ee4e7864ba48d337cc9141cea0 Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 30 Nov 2007 09:08:26 +0000 Subject: rmdfunc.h: added func decl for rmdErrorHandler git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@444 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/rmdfunc.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- cgit v1.2.1