From 22f077b384398962d801fcb8aa141ac0c5534d00 Mon Sep 17 00:00:00 2001 From: pagedown Date: Thu, 27 Jan 2022 09:53:40 +0800 Subject: [PATCH] Clear overlay text after screen loses focus --- kitty/screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/screen.c b/kitty/screen.c index 7d73077c8..a3211a41a 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -3651,6 +3651,7 @@ focus_changed(Screen *self, PyObject *has_focus_) { if (has_focus != previous) { self->has_focus = has_focus; if (has_focus) self->has_activity_since_last_focus = false; + else if (self->overlay_line.is_active) deactivate_overlay_line(self); if (self->modes.mFOCUS_TRACKING) write_escape_code_to_child(self, CSI, has_focus ? "I" : "O"); Py_RETURN_TRUE; }