mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Cancel IME for active kitty or OS window only
This commit is contained in:
@@ -81,6 +81,7 @@ active_window(void) {
|
||||
|
||||
void
|
||||
update_ime_focus(OSWindow *osw, bool focused) {
|
||||
if (!osw || !osw->handle) return;
|
||||
GLFWIMEUpdateEvent ev = { .focused = focused, .type = GLFW_IME_UPDATE_FOCUS };
|
||||
glfwUpdateIMEState(osw->handle, &ev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user