From c85b545f8d5fadb019b19b53c860025c1d41f7c3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 12 Nov 2021 17:43:01 +0530 Subject: [PATCH] Add a debug print when receiving text from child while overlay is active --- kitty/screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/screen.c b/kitty/screen.c index d87e1c032..d0f91a4ac 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -745,6 +745,7 @@ screen_draw(Screen *self, uint32_t och, bool from_input_stream) { } draw_impl(self, och, from_input_stream); if (overlay_text) { + debug("Received char (0x%x) from child while overlay active. Overlay contents: %s\n", och, PyUnicode_AsUTF8(overlay_text)); screen_draw_overlay_text(self, PyUnicode_AsUTF8(overlay_text)); Py_DECREF(overlay_text); update_ime_position_for_window(self->window_id);