diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-30 04:35:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-30 04:35:22 +0000 |
| commit | 23640740ca6659ee4effb9e5c040900e0bbdeb59 (patch) | |
| tree | c738aeaec1d4948abf982e367a48f270ab3528fa /src/BaseDisplay.cc | |
| parent | 478771552533b63ff6c0dda136bca5e6b1701c91 (diff) | |
sync with bb cvs
Diffstat (limited to 'src/BaseDisplay.cc')
| -rw-r--r-- | src/BaseDisplay.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/BaseDisplay.cc b/src/BaseDisplay.cc index 0fde13d7..5c34a727 100644 --- a/src/BaseDisplay.cc +++ b/src/BaseDisplay.cc @@ -91,12 +91,11 @@ using std::string; // X error handler to handle any and all X errors while the application is // running static bool internal_error = False; -static Window last_bad_window = None; BaseDisplay *base_display; -#ifdef DEBUG static int handleXErrors(Display *d, XErrorEvent *e) { +#ifdef DEBUG char errtxt[128]; XGetErrorText(d, e->error_code, errtxt, 128); @@ -106,10 +105,11 @@ static int handleXErrors(Display *d, XErrorEvent *e) { base_display->getApplicationName(), errtxt, e->error_code, e->request_code, e->minor_code, e->resourceid); #else -static int handleXErrors(Display *, XErrorEvent *e) { + // shutup gcc + (void) d; + (void) e; #endif // DEBUG - if (e->error_code == BadWindow) last_bad_window = e->resourceid; if (internal_error) abort(); return(False); @@ -179,7 +179,6 @@ BaseDisplay::BaseDisplay(const char *app_name, const char *dpy_name) { application_name = app_name; run_state = STARTUP; - last_bad_window = None; ::base_display = this; @@ -302,11 +301,6 @@ void BaseDisplay::eventLoop(void) { if (XPending(display)) { XEvent e; XNextEvent(display, &e); - - if (last_bad_window != None && e.xany.window == last_bad_window) - continue; - - last_bad_window = None; process_event(&e); } else { fd_set rfds; |
