From: Dana Jansens Date: Tue, 7 Jan 2003 07:24:39 +0000 (+0000) Subject: abort() on X errors that aren't BadWindow errors X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=19eb13679dff7cb492f09b848e34b1fe6c081cbc;p=chaz%2Fopenbox abort() on X errors that aren't BadWindow errors --- 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;