]> Dogcows Code - chaz/openbox/blobdiff - openbox/xerror.c
dont go changing the session file all the time, and so then dont need to unlink so...
[chaz/openbox] / openbox / xerror.c
index a6066e2f37c74fa59d54f9869e6112be32ebf256..12a66afcb6333b07eed65316b75b68625ec11dd7 100644 (file)
 static gboolean xerror_ignore = FALSE;
 gboolean xerror_occured = FALSE;
 
-int xerror_handler(Display *d, XErrorEvent *e)
+gint xerror_handler(Display *d, XErrorEvent *e)
 {
     xerror_occured = TRUE;
 #ifdef DEBUG
     if (!xerror_ignore) {
-       char errtxt[128];
+        gchar errtxt[128];
          
-       /*if (e->error_code != BadWindow) */
-       {
-           XGetErrorText(d, e->error_code, errtxt, 127);
-           if (e->error_code == BadWindow)
-               /*g_warning("X Error: %s", errtxt)*/;
-           else
-               g_error("X Error: %s", errtxt);
-       }
+        /*if (e->error_code != BadWindow) */
+        {
+            XGetErrorText(d, e->error_code, errtxt, 127);
+            if (e->error_code == BadWindow)
+                /*g_warning("X Error: %s", errtxt)*/;
+            else
+                g_error("X Error: %s", errtxt);
+        }
     }
 #else
     (void)d; (void)e;
This page took 0.025126 seconds and 4 git commands to generate.