mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-11 01:17:34 +03:00
Allow using GLFW_IM_MODULE to activate ibus
This commit is contained in:
parent
e3e28a023c
commit
95187632bf
2
glfw/ibus_glfw.c
vendored
2
glfw/ibus_glfw.c
vendored
@ -278,7 +278,7 @@ setup_connection(_GLFWIBUSData *ibus) {
|
||||
void
|
||||
glfw_connect_to_ibus(_GLFWIBUSData *ibus) {
|
||||
if (ibus->inited) return;
|
||||
if (!test_env_var("XMODIFIERS", "@im=ibus") && !test_env_var("GTK_IM_MODULE", "ibus") && !test_env_var("QT_IM_MODULE", "ibus")) return;
|
||||
if (!test_env_var("XMODIFIERS", "@im=ibus") && !test_env_var("GTK_IM_MODULE", "ibus") && !test_env_var("QT_IM_MODULE", "ibus") && !test_env_var("GLFW_IM_MODULE", "ibus")) return;
|
||||
if (getenv("GLFW_IM_MODULE") && !test_env_var("GLFW_IM_MODULE", "ibus")) return;
|
||||
ibus->inited = GLFW_TRUE;
|
||||
setup_connection(ibus);
|
||||
|
Loading…
Reference in New Issue
Block a user