summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-12-21 10:03:54 +0000
committersabetts <sabetts>2001-12-21 10:03:54 +0000
commitd3fa9b288a8113cec4fbcc45c2a6f8df9ea7f7ef (patch)
tree65249ab131cf8444f30755459578631ba8033b02 /src/events.c
parenta43d89a4ac9080ba0fe48d574e604260413ef2f9 (diff)
downloadratpoison-d3fa9b288a8113cec4fbcc45c2a6f8df9ea7f7ef.zip
* src/data.h (rp_error_msg): new global extern
* src/main.c (rp_error_msg): new global variable * src/events.c (get_event): If there is an X11 error message to print, print it. * src/main.c (handler): record the error in rp_error_msg
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c
index acc936f..4c4a5f3 100644
--- a/src/events.c
+++ b/src/events.c
@@ -816,6 +816,14 @@ get_event (XEvent *ev)
exit (EXIT_SUCCESS);
}
+ /* Report any X11 errors that have occurred. */
+ if (rp_error_msg)
+ {
+ marked_message_printf (0, 6, "ERROR: %s", rp_error_msg);
+ free (rp_error_msg);
+ rp_error_msg = NULL;
+ }
+
/* Is there anything in the event qeue? */
if (QLength (dpy) > 0)
{