xglcomp

view src/xerr.h @ 9:245dd960f0b3

added xerror handling helpers
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 02 Feb 2016 12:54:02 +0200
parents
children
line source
1 #ifndef XERR_H_
2 #define XERR_H_
4 #include <X11/Xlib.h>
6 typedef int (*xerr_handler_type)(Display*, XErrorEvent*);
8 void push_xerr_handler(xerr_handler_type func);
9 void pop_xerr_handler();
11 int xerr_debug(Display *dpy, XErrorEvent *err);
12 int xerr_ignore(Display *dpy, XErrorEvent *err);
14 #endif /* XERR_H_ */