IME support
This commit is contained in:
parent
fda1e592e7
commit
2cd4d7b70b
|
@ -7,7 +7,7 @@ eventloop(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (!XNextEvent(dpy, &ev)) {
|
while (!XNextEvent(dpy, &ev)) {
|
||||||
if (XFilterEvent(&ev, win))
|
if (XFilterEvent(&ev, None))
|
||||||
continue;
|
continue;
|
||||||
switch(ev.type) {
|
switch(ev.type) {
|
||||||
case DestroyNotify:
|
case DestroyNotify:
|
||||||
|
|
4
spmenu.c
4
spmenu.c
|
@ -615,6 +615,7 @@ setupdisplay(void)
|
||||||
XNClientWindow, win, XNFocusWindow, win, NULL);
|
XNClientWindow, win, XNFocusWindow, win, NULL);
|
||||||
|
|
||||||
XMapRaised(dpy, win);
|
XMapRaised(dpy, win);
|
||||||
|
XSetInputFocus(dpy, win, RevertToParent, CurrentTime);
|
||||||
|
|
||||||
// embed spmenu inside parent window
|
// embed spmenu inside parent window
|
||||||
if (embed) {
|
if (embed) {
|
||||||
|
@ -659,6 +660,9 @@ main(int argc, char *argv[])
|
||||||
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
||||||
fputs("warning: no locale support\n", stderr); // invalid locale, so notify the user about it
|
fputs("warning: no locale support\n", stderr); // invalid locale, so notify the user about it
|
||||||
|
|
||||||
|
if (!XSetLocaleModifiers(""))
|
||||||
|
fputs("warning: no locale modifiers support\n", stderr);
|
||||||
|
|
||||||
if (!(dpy = XOpenDisplay(NULL)))
|
if (!(dpy = XOpenDisplay(NULL)))
|
||||||
die("spmenu: cannot open display"); // failed to open display
|
die("spmenu: cannot open display"); // failed to open display
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue