diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-30 09:08:26 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-11-30 09:08:26 +0000 |
commit | c908820aaaf199ee4e7864ba48d337cc9141cea0 (patch) | |
tree | 9201d9b49c2fb0a6ac9ce564a1400f2da707c845 /recordmydesktop | |
parent | 6dcbd633ef79bce5040a7bc6062f0895fe600456 (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
Diffstat (limited to 'recordmydesktop')
-rw-r--r-- | recordmydesktop/include/rmdfunc.h | 16 |
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 |