mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
Merge branch 'release/1.10.x'
This commit is contained in:
commit
918d268b80
@ -17,9 +17,13 @@ from direct.showbase.MessengerGlobal import messenger
|
||||
import types
|
||||
import random
|
||||
import importlib
|
||||
import sys
|
||||
|
||||
try:
|
||||
import signal
|
||||
if sys.version_info >= (3, 0):
|
||||
import _signal as signal
|
||||
else:
|
||||
import signal
|
||||
except ImportError:
|
||||
signal = None
|
||||
|
||||
|
@ -316,8 +316,13 @@ x11GraphicsPipe(const std::string &display) :
|
||||
// Connect to an input method for supporting international text entry.
|
||||
_im = XOpenIM(_display, nullptr, nullptr, nullptr);
|
||||
if (_im == (XIM)nullptr) {
|
||||
x11display_cat.warning()
|
||||
<< "Couldn't open input method.\n";
|
||||
// Fall back to internal input method.
|
||||
XSetLocaleModifiers("@im=none");
|
||||
_im = XOpenIM(_display, nullptr, nullptr, nullptr);
|
||||
if (_im == (XIM)nullptr) {
|
||||
x11display_cat.warning()
|
||||
<< "Couldn't open input method.\n";
|
||||
}
|
||||
}
|
||||
|
||||
// What styles does the current input method support?
|
||||
|
@ -1119,10 +1119,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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user