From ddd8209c455b49a4be0633de4132b51a55545966 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Aug 2018 10:35:46 +0530 Subject: [PATCH] Fix crash when pressing enter while using IBUS --- 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 0ff14c27d..61bd0df99 100644 --- a/glfw/ibus_glfw.c +++ b/glfw/ibus_glfw.c @@ -123,7 +123,7 @@ message_handler(DBusConnection *conn, DBusMessage *msg, void *user_data) { _GLFWIBUSData *ibus = (_GLFWIBUSData*)user_data; (void)ibus; const char *text; - switch(glfw_dbus_match_signal(msg, IBUS_INPUT_INTERFACE, "CommitText", "UpdatePreeditText", "HidePreeditText", "ShowPreeditText")) { + switch(glfw_dbus_match_signal(msg, IBUS_INPUT_INTERFACE, "CommitText", "UpdatePreeditText", "HidePreeditText", "ShowPreeditText", NULL)) { case 0: text = get_ibus_text_from_message(msg); debug("IBUS: CommitText: '%s'\n", text ? text : "(nil)");