Update ibus_glfw.c

This commit is contained in:
unisgn 2021-09-25 00:10:53 +08:00 committed by GitHub
parent c45a656153
commit d078cb264a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
glfw/ibus_glfw.c vendored
View File

@ -168,11 +168,7 @@ ibus_on_owner_change(DBusConnection* conn UNUSED, DBusMessage* msg, void* user_d
}
_GLFWIBUSData* ibus = (_GLFWIBUSData*) user_data;
if (strcmp(new_owner, "") == 0) {
ibus->ok = false;
} else {
ibus->ok = true;
}
ibus->ok = strcmp(new_owner, "") != 0;
return DBUS_HANDLER_RESULT_HANDLED;