Browse Source

x11: fix support for dead keys

It seems to be required to pass a window to XCreateIC for receiving dead keys.
rdb 5 years ago
parent
commit
b225a3260b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      panda/src/x11display/x11GraphicsWindow.cxx

+ 2 - 4
panda/src/x11display/x11GraphicsWindow.cxx

@@ -1081,10 +1081,8 @@ open_window() {
   XIM im = x11_pipe->get_im();
   _ic = nullptr;
   if (im) {
-    _ic = XCreateIC
-      (im,
-       XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
-       nullptr);
+    _ic = XCreateIC(im, XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
+                    XNClientWindow, _xwindow, nullptr);
     if (_ic == (XIC)nullptr) {
       x11display_cat.warning()
         << "Couldn't create input context.\n";