add a var to track errors
Dana Jansens danakj@orodu.net
2 files changed,
5 insertions(+),
0 deletions(-)
M
openbox/xerror.c
→
openbox/xerror.c
@@ -3,9 +3,11 @@ #include <glib.h>
#include <X11/Xlib.h> static gboolean xerror_ignore = FALSE; +gboolean xerror_occured = FALSE; int xerror_handler(Display *d, XErrorEvent *e) { + xerror_occured = TRUE; #ifdef DEBUG if (!xerror_ignore) { char errtxt[128];
M
openbox/xerror.h
→
openbox/xerror.h
@@ -4,6 +4,9 @@
#include <X11/Xlib.h> #include <glib.h> +/* can be used to track errors */ +extern gboolean xerror_occured; + int xerror_handler(Display *, XErrorEvent *); void xerror_set_ignore(gboolean ignore);