diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-06 10:39:50 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-06 10:39:50 +0000 |
| commit | 83322ce3be2e22772f8b0669e393a07ecb78ab68 (patch) | |
| tree | 7b6d035e48a94ec0b1744061152818fbc7126195 /otk | |
| parent | 395b9e155aafbc09024d811260da961498f8334d (diff) | |
dont show badwindow errors
Diffstat (limited to 'otk')
| -rw-r--r-- | otk/display.cc | 6 |
1 files 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; |
