From 4f8ef05058f30d619a1cb9497b3eb6b1d9dd2ffc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 Jun 2022 11:37:35 +0530 Subject: [PATCH] Linux: Update cursor position after all key presses not just pre-edit text changes Fixes #5241 --- docs/changelog.rst | 3 +++ kitty/keys.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 33d854b30..0f01c8295 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -56,6 +56,9 @@ Detailed list of changes - Wayland: Reduce flicker at startup by not using render frames immediately after a resize (:iss:`5235`) +- Linux: Update cursor position after all key presses not just pre-edit text + changes (:iss:`5241`) + 0.25.2 [2022-06-07] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/keys.c b/kitty/keys.c index 24ccfda07..965ee74f0 100644 --- a/kitty/keys.c +++ b/kitty/keys.c @@ -157,9 +157,8 @@ on_key_input(GLFWkeyevent *ev) { case GLFW_IME_NONE: // for macOS, update ime position on every key input // because the position is required before next input -#if defined(__APPLE__) + // On Linux this is needed by Fig integration: https://github.com/kovidgoyal/kitty/issues/5241 update_ime_position(w, screen); -#endif break; default: debug("invalid state, ignoring\n");