mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 11:07:38 +03:00
Fix crash when pressing enter while using IBUS
This commit is contained in:
parent
1dc3dfe58f
commit
ddd8209c45
2
glfw/ibus_glfw.c
vendored
2
glfw/ibus_glfw.c
vendored
@ -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)");
|
||||
|
Loading…
Reference in New Issue
Block a user