Add a GLFW specific env var to toggle IBUS
This commit is contained in:
parent
e405b68da1
commit
377115a594
1
glfw/ibus_glfw.c
vendored
1
glfw/ibus_glfw.c
vendored
@ -271,6 +271,7 @@ 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 (getenv("GLFW_IM_MODULE") && !test_env_var("GLFW_IM_MODULE", "ibus")) return;
|
||||
ibus->inited = GLFW_TRUE;
|
||||
setup_connection(ibus);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user