From 377115a5949ae8654b45e384b8f4e9f2b59f66d3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Jul 2018 22:39:24 +0530 Subject: [PATCH] Add a GLFW specific env var to toggle IBUS --- glfw/ibus_glfw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glfw/ibus_glfw.c b/glfw/ibus_glfw.c index 98c9a9a09..db33d54c4 100644 --- a/glfw/ibus_glfw.c +++ b/glfw/ibus_glfw.c @@ -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); }