Browse Source

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.
master
Ivan Tham 4 years ago
committed by Hiltjo Posthuma
parent
commit
51e19ea11d
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      x.c

+ 0
- 1
x.c View File

@ -1047,7 +1047,6 @@ ximopen(Display *dpy)
xw.ime.xic = XCreateIC(xw.ime.xim, XNInputStyle, xw.ime.xic = XCreateIC(xw.ime.xim, XNInputStyle,
XIMPreeditNothing | XIMStatusNothing, XIMPreeditNothing | XIMStatusNothing,
XNClientWindow, xw.win, XNClientWindow, xw.win,
XNFocusWindow, xw.win,
XNDestroyCallback, &icdestroy, XNDestroyCallback, &icdestroy,
NULL); NULL);
} }


Loading…
Cancel
Save