mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
Emits an IME lost focus event when the window lost focus or closed
This commit is contained in:
@@ -79,6 +79,12 @@ active_window(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
update_ime_focus(OSWindow *osw, bool focused) {
|
||||
GLFWIMEUpdateEvent ev = { .focused = focused, .type = GLFW_IME_UPDATE_FOCUS };
|
||||
glfwUpdateIMEState(osw->handle, &ev);
|
||||
}
|
||||
|
||||
void
|
||||
update_ime_position(Window* w, Screen *screen) {
|
||||
unsigned int cell_width = global_state.callback_os_window->fonts_data->cell_width, cell_height = global_state.callback_os_window->fonts_data->cell_height;
|
||||
|
||||
Reference in New Issue
Block a user