mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
x11: fix support for dead keys
It seems to be required to pass a window to XCreateIC for receiving dead keys.
This commit is contained in:
parent
18bb8a5559
commit
b225a3260b
@ -1081,10 +1081,8 @@ open_window() {
|
|||||||
XIM im = x11_pipe->get_im();
|
XIM im = x11_pipe->get_im();
|
||||||
_ic = nullptr;
|
_ic = nullptr;
|
||||||
if (im) {
|
if (im) {
|
||||||
_ic = XCreateIC
|
_ic = XCreateIC(im, XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
|
||||||
(im,
|
XNClientWindow, _xwindow, nullptr);
|
||||||
XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
|
|
||||||
nullptr);
|
|
||||||
if (_ic == (XIC)nullptr) {
|
if (_ic == (XIC)nullptr) {
|
||||||
x11display_cat.warning()
|
x11display_cat.warning()
|
||||||
<< "Couldn't create input context.\n";
|
<< "Couldn't create input context.\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user