Add a debug print when receiving text from child while overlay is active

This commit is contained in:
Kovid Goyal 2021-11-12 17:43:01 +05:30
parent f24dc80c49
commit c85b545f8d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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);