Fix crash when pressing enter while using IBUS

This commit is contained in:
Kovid Goyal 2018-08-06 10:35:46 +05:30
parent 1dc3dfe58f
commit ddd8209c45
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/ibus_glfw.c vendored
View File

@ -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)");