]> Dogcows Code - chaz/openbox/commitdiff
dont show badwindow errors
authorDana Jansens <danakj@orodu.net>
Wed, 6 Nov 2002 10:39:50 +0000 (10:39 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 6 Nov 2002 10:39:50 +0000 (10:39 +0000)
otk/display.cc

index b6fcab07e94df3b18e367a5ac42e5f0c41e88a72..3720364366341ca383e50a7592a0e0a56a965fc6 100644 (file)
@@ -54,8 +54,10 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
 #ifdef DEBUG
   char errtxt[128];
 
-  XGetErrorText(d, e->error_code, errtxt, 128);
-  printf("X Error: %s\n", errtxt);
+  if (e->error_code != BadWindow) {
+    XGetErrorText(d, e->error_code, errtxt, 128);
+    printf("X Error: %s\n", errtxt);
+  }
 #else
   (void)d;
   (void)e;
This page took 0.026639 seconds and 4 git commands to generate.