diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index c0941b7cbdb..92b245f2b32 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7590,6 +7590,23 @@ x_clear_errors (dpy) | |||
| 7590 | x_error_message->string[0] = 0; | 7590 | x_error_message->string[0] = 0; |
| 7591 | } | 7591 | } |
| 7592 | 7592 | ||
| 7593 | /* Close off all unclosed x_catch_errors calls. */ | ||
| 7594 | |||
| 7595 | void | ||
| 7596 | x_fully_uncatch_errors () | ||
| 7597 | { | ||
| 7598 | while (x_error_message) | ||
| 7599 | x_uncatch_errors (); | ||
| 7600 | } | ||
| 7601 | |||
| 7602 | /* Nonzero if x_catch_errors has been done and not yet canceled. */ | ||
| 7603 | |||
| 7604 | int | ||
| 7605 | x_catching_errors () | ||
| 7606 | { | ||
| 7607 | return x_error_message != 0; | ||
| 7608 | } | ||
| 7609 | |||
| 7593 | #if 0 | 7610 | #if 0 |
| 7594 | static unsigned int x_wire_count; | 7611 | static unsigned int x_wire_count; |
| 7595 | x_trace_wire () | 7612 | x_trace_wire () |