]> Dogcows Code - chaz/openbox/blobdiff - openbox/xerror.c
fallback to transients' parents when possible.
[chaz/openbox] / openbox / xerror.c
index 49a795f8db5a5c05b528bae323ebde400a9cf6e5..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];
@@ -14,7 +16,7 @@ int xerror_handler(Display *d, XErrorEvent *e)
        {
            XGetErrorText(d, e->error_code, errtxt, 127);
            if (e->error_code == BadWindow)
-               g_warning("X Error: %s", errtxt);
+               /*g_warning("X Error: %s", errtxt)*/;
            else
                g_error("X Error: %s", errtxt);
        }
This page took 0.020491 seconds and 4 git commands to generate.