XNFocusWindow defaults to XNClientWindow if not specified
---
 x.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x.c b/x.c
index 919a0ab..13194c6 100644
--- a/x.c
+++ b/x.c
@@ -1037,8 +1037,9 @@ ximopen()
        }
        if (XSetIMValues(xw.xim, XNDestroyCallback, &destroy, NULL) != NULL)
                die("XSetIMValues failed. Could not set input method value.\n");
+
        xw.xic = XCreateIC(xw.xim, XNInputStyle, XIMPreeditNothing | 
XIMStatusNothing,
-                               XNClientWindow, xw.win, XNFocusWindow, xw.win, 
NULL);
+                               XNClientWindow, xw.win, NULL);
        if (xw.xic == NULL)
                die("XCreateIC failed. Could not obtain input method.\n");
 }
-- 
2.25.0


Reply via email to