From e405b68da1389bb7ea9922a2aed106a1c4d23a4f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Jul 2018 15:28:14 +0530 Subject: [PATCH] ... --- glfw/ibus_glfw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/ibus_glfw.c b/glfw/ibus_glfw.c index 86e8badb9..98c9a9a09 100644 --- a/glfw/ibus_glfw.c +++ b/glfw/ibus_glfw.c @@ -48,7 +48,7 @@ enum Capabilities { static inline GLFWbool -has_env_var(const char *name, const char *val) { +test_env_var(const char *name, const char *val) { const char *q = getenv(name); return (q && strcmp(q, val) == 0) ? GLFW_TRUE : GLFW_FALSE; } @@ -270,7 +270,7 @@ setup_connection(_GLFWIBUSData *ibus) { void glfw_connect_to_ibus(_GLFWIBUSData *ibus) { if (ibus->inited) return; - if (!has_env_var("XMODIFIERS", "@im=ibus") && !has_env_var("GTK_IM_MODULE", "ibus") && !has_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")) return; ibus->inited = GLFW_TRUE; setup_connection(ibus); }