]> Dogcows Code - chaz/openbox/commitdiff
abort() on X errors that aren't BadWindow errors
authorDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 07:24:39 +0000 (07:24 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 07:24:39 +0000 (07:24 +0000)
otk/display.cc

index 21ffcd5d85442992ec19c8bb7d987631519ffecf..6fc6117cd2e5a72af0a40de1523ff26201c2f642 100644 (file)
@@ -65,6 +65,8 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
   {
     XGetErrorText(d, e->error_code, errtxt, 128);
     printf("X Error: %s\n", errtxt);
+    if (e->error_code != BadWindow)
+      abort();
   }
 #else
   (void)d;
This page took 0.02514 seconds and 4 git commands to generate.