summaryrefslogtreecommitdiff
path: root/src/rmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rmd.c')
-rw-r--r--src/rmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmd.c b/src/rmd.c
index c76b5bf..27e7183 100644
--- a/src/rmd.c
+++ b/src/rmd.c
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
if (pdata.args.display != NULL) {
pdata.dpy = XOpenDisplay(pdata.args.display);
- XSetErrorHandler(rmdErrorHandler);
+ XSetErrorHandler(pdata.args.need_shortcuts ? rmdGrabErrorsFatalErrorHandler : rmdErrorHandler);
} else {
fprintf(stderr, "No display specified for connection!\n");
exit(8);
© All Rights Reserved