summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ae698c5..5980ce1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -211,7 +211,11 @@ handler (Display *d, XErrorEvent *e)
exit(EXIT_FAILURE);
}
+#ifdef IGNORE_BADWINDOW
+ return 0;
+#else
if (ignore_badwindow && e->error_code == BadWindow) return 0;
+#endif
XGetErrorText (d, e->error_code, error_msg, sizeof (error_msg));
fprintf (stderr, "ratpoison: ERROR: %s!\n", error_msg);