From b1387d50f0e77ca8901f39343621977be51a308a Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Fri, 31 Jul 2020 17:52:53 -0700 Subject: [PATCH] Register to bus when connect to ibus. This is required when the actual dbus is not from ibus but session bus. This may happen when other run a shim layer for ibus, or ibus is running with flatpak mode. --- glfw/ibus_glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/ibus_glfw.c b/glfw/ibus_glfw.c index 13f7fe5e6..bdba0af48 100644 --- a/glfw/ibus_glfw.c +++ b/glfw/ibus_glfw.c @@ -269,7 +269,7 @@ setup_connection(_GLFWIBUSData *ibus) { ibus->conn = NULL; } debug("Connecting to IBUS daemon @ %s for IME input management\n", ibus->address); - ibus->conn = glfw_dbus_connect_to(ibus->address, "Failed to connect to the IBUS daemon, with error", "ibus", false); + ibus->conn = glfw_dbus_connect_to(ibus->address, "Failed to connect to the IBUS daemon, with error", "ibus", true); if (!ibus->conn) return false; free((void*)ibus->input_ctx_path); ibus->input_ctx_path = NULL; if (!glfw_dbus_call_method_with_reply(