summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
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)
{