diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.h | 5 | ||||
-rw-r--r-- | src/main.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -68,4 +68,9 @@ /* Maximum depth of a link. Used in the 'link' command. */ #define MAX_LINK_DEPTH 16 +/* Bad window messages can be safely ignored now that ratpoison has + become stable enough. Comment this line if you wish to be notified + about bad window messages. */ +#define IGNORE_BADWINDOW 1 + #endif /* !_ _RATPOISON_CONF_H */ @@ -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); |