From b225a3260bebc6d63b910f2dd2bef25d216e89fe Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 28 Feb 2020 15:50:48 +0100 Subject: [PATCH] x11: fix support for dead keys It seems to be required to pass a window to XCreateIC for receiving dead keys. --- panda/src/x11display/x11GraphicsWindow.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/panda/src/x11display/x11GraphicsWindow.cxx b/panda/src/x11display/x11GraphicsWindow.cxx index 7dbd7c53dc..2d6b75740f 100644 --- a/panda/src/x11display/x11GraphicsWindow.cxx +++ b/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";