[hackers] [st][PATCH 3/4] XNFocusWindow not needed for ximopen

From: Ivan Tham <pickfire_AT_riseup.net>
Date: Sun, 2 Feb 2020 21:22:29 +0800

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
_AT_@ -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
Received on Sun Feb 02 2020 - 14:22:29 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 02 2020 - 14:24:52 CET