mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-12 03:01:09 +00:00
...
This commit is contained in:
parent
d875d7baed
commit
e405b68da1
1 changed files with 2 additions and 2 deletions
4
glfw/ibus_glfw.c
vendored
4
glfw/ibus_glfw.c
vendored
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue