From 83322ce3be2e22772f8b0669e393a07ecb78ab68 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 6 Nov 2002 10:39:50 +0000 Subject: [PATCH] dont show badwindow errors --- otk/display.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/otk/display.cc b/otk/display.cc index b6fcab07..37203643 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -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; -- 2.45.2