From 19eb13679dff7cb492f09b848e34b1fe6c081cbc Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 7 Jan 2003 07:24:39 +0000 Subject: [PATCH] abort() on X errors that aren't BadWindow errors --- otk/display.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/otk/display.cc b/otk/display.cc index 21ffcd5d..6fc6117c 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -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; -- 2.45.2