]> Dogcows Code - chaz/openbox/commitdiff
add a var to track errors
authorDana Jansens <danakj@orodu.net>
Sat, 29 Mar 2003 00:48:52 +0000 (00:48 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 29 Mar 2003 00:48:52 +0000 (00:48 +0000)
openbox/xerror.c
openbox/xerror.h

index 586b77c2eb00d17a1897935db1b24776a6a330cf..239a8ccbc98b07df9941b50c22edf92f2d3ccb40 100644 (file)
@@ -3,9 +3,11 @@
 #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];
index 74b236fbdaf5bfeb4a5b21a7a4f93d41ea200c7a..bfa93ba91385234dd36fe72f5fca45f8125c538a 100644 (file)
@@ -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);
This page took 0.023914 seconds and 4 git commands to generate.