aboutsummaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-02-18 23:28:47 +0800
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-02-19 00:46:20 +0100
commit51e19ea11dd42eefed1ca136ee3f6be975f618b1 (patch)
tree4b48c2e3976b982224b335cf9e074504d0f19427 /x.c
parent26cdfebf31f024e331429e482b1ee342708888e3 (diff)
downloadst-patched-51e19ea11dd42eefed1ca136ee3f6be975f618b1.tar.bz2
st-patched-51e19ea11dd42eefed1ca136ee3f6be975f618b1.tar.xz
st-patched-51e19ea11dd42eefed1ca136ee3f6be975f618b1.zip
Remove explicit XNFocusWindow
XCreateIC ICValues default XNFocusWindow to XNClientWindow if not specified, it can be omitted since it is the same. From the documentation https://www.x.org/releases/current/doc/libX11/libX11/libX11.html > Focus Window > > The XNFocusWindow argument specifies the focus window. The primary > purpose of the XNFocusWindow is to identify the window that will receive > the key event when input is composed. > > When this XIC value is left unspecified, the input method will use the > client window as the default focus window.
Diffstat (limited to 'x.c')
-rw-r--r--x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/x.c b/x.c
index 1f62129..48a6676 100644
--- a/x.c
+++ b/x.c
@@ -1047,7 +1047,6 @@ ximopen(Display *dpy)
1047 xw.ime.xic = XCreateIC(xw.ime.xim, XNInputStyle, 1047 xw.ime.xic = XCreateIC(xw.ime.xim, XNInputStyle,
1048 XIMPreeditNothing | XIMStatusNothing, 1048 XIMPreeditNothing | XIMStatusNothing,
1049 XNClientWindow, xw.win, 1049 XNClientWindow, xw.win,
1050 XNFocusWindow, xw.win,
1051 XNDestroyCallback, &icdestroy, 1050 XNDestroyCallback, &icdestroy,
1052 NULL); 1051 NULL);
1053 } 1052 }