fix(engine): a reset or a lost focus commits the pending text
Clicking elsewhere, changing focus, or any client reset dropped the composition in the GTK module and IBus (only XIM ResetIC handed it back), so typing 안녕 and clicking Send lost 녕. The engine now returns the pending text — a moved-to candidate first, as Enter would — on Keyreset and Keyrelease; the GTK module asks for it before closing on focus-out and commits it, IBus commits it on FocusOut, Reset and a switch to a password field, and XIM commits it on focus loss and hands it back on ResetIC without a separate capability probe.
This commit is contained in:
@@ -901,7 +901,6 @@ xim_adapter_callback_cleanup(struct ct *t)
|
||||
memset(&reply, 0, sizeof reply);
|
||||
hdr.major_opcode = XCB_XIM_RESET_IC;
|
||||
callback(nil, nil, ic, &hdr, nil, &reply, nil);
|
||||
nexttrace(t, &f, Keycap, &state);
|
||||
nexttrace(t, &f, Keyreset, &state);
|
||||
notrace(t, &f);
|
||||
checkct(t, "reset reply", reply.committed_string,
|
||||
|
||||
Reference in New Issue
Block a user