aboutsummaryrefslogtreecommitdiff
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 855d04b..7ceef29 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -323,6 +323,7 @@ puglCreateWindow(PuglView* view, const char* title)
(Window)(view->transient_parent));
}
+ XSetLocaleModifiers("");
if (!(impl->xim = XOpenIM(impl->display, NULL, NULL, NULL))) {
XSetLocaleModifiers("@im=");
if (!(impl->xim = XOpenIM(impl->display, NULL, NULL, NULL))) {
@@ -330,10 +331,11 @@ puglCreateWindow(PuglView* view, const char* title)
}
}
- if (!(impl->xic = XCreateIC(impl->xim, XNInputStyle,
- XIMPreeditNothing | XIMStatusNothing,
+ const XIMStyle im_style = XIMPreeditNothing | XIMStatusNothing;
+ if (!(impl->xic = XCreateIC(impl->xim,
+ XNInputStyle, im_style,
XNClientWindow, impl->win,
- XNFocusWindow, impl->win,
+ XNFocusWindow, impl->win,
NULL))) {
fprintf(stderr, "warning: XCreateIC failed\n");
}