From db3b79e92aed2f5ad2b422558995674d0234bbfc Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 30 Jul 2005 10:28:24 +0000 Subject: [PATCH] r4057: Don't abort on BadWindow errors. GTK bug #152151 is still not fixed after nearly a year, so give up trying to fix it and just ignore it (Thomas Leonard). --- ROX-Filer/Help/Changes | 5 +++++ ROX-Filer/src/main.c | 11 +---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index 5dd4ee00..c6732e88 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -2,6 +2,11 @@ A RISC OS-like filer for X by Thomas Leonard +30-Jul-2005 +~~~~~~~~~~~ +Don't abort on BadWindow errors. GTK bug #152151 is still not fixed after +nearly a year, so give up trying to fix it and just ignore it (Thomas Leonard). + 29-Jul-2005 ~~~~~~~~~~~ Added option to only show iconified windows belonging to the current workspace diff --git a/ROX-Filer/src/main.c b/ROX-Filer/src/main.c index 4f903bc2..0c038f7c 100644 --- a/ROX-Filer/src/main.c +++ b/ROX-Filer/src/main.c @@ -232,16 +232,7 @@ static int rox_x_error(Display *display, XErrorEvent *error) /* Try to cope with BadWindow errors */ if (error->error_code == 3) { - static time_t last_error = 0; - time_t now; - now = time(NULL); - - if (last_error + 5 > now) - abort(); /* Errors coming too fast... */ - - last_error = now; - - delayed_error(_("We got a BadWindow error from the X server. " + g_warning(_("We got a BadWindow error from the X server. " "This might be due to this GTK bug (during drag-and-drop?):\n" "http://bugzilla.gnome.org/show_bug.cgi?id=152151\n" "Trying to continue...")); -- 2.11.4.GIT