improve xopenim error message
authorHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 12 Feb 2019 21:58:35 +0000 (22:58 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Tue, 12 Feb 2019 21:58:35 +0000 (22:58 +0100)
die() already prints a newline.

dmenu.c

diff --git a/dmenu.c b/dmenu.c
index ae56f4f..3bfd74d 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -671,7 +671,7 @@ setup(void)
                if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL) {
                        XSetLocaleModifiers("@im=");
                        if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL)
-                               die("XOpenIM failed. Could not open input device.\n");
+                               die("XOpenIM failed: could not open input device");
                }
        }