diff options
author | sabetts <sabetts> | 2002-07-28 23:07:04 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-07-28 23:07:04 +0000 |
commit | 7ba1b046c9cd461f96917746dd982c049c3afe92 (patch) | |
tree | fe71cc4a49f0b73b0aa2c75471eb2ab114999693 /src/main.c | |
parent | 538c8055da7ed86f159a7c5dc8aaf867d14385df (diff) | |
download | ratpoison-7ba1b046c9cd461f96917746dd982c049c3afe92.zip |
* src/main.c (handler): do not report badwindow errors if
IGNORE_BADWINDOW is define.
* src/conf.h (IGNORE_BADWINDOW): new define
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |