update cells to hide cursor on non-focus

This commit is contained in:
Mitchell Hashimoto
2022-04-22 20:11:42 -07:00
parent 87899421bd
commit 7169679654

View File

@ -225,6 +225,7 @@ fn focusCallback(window: glfw.Window, focused: bool) void {
win.wakeup = true;
} else {
win.grid.cursor_visible = false;
win.grid.updateCells(win.terminal) catch unreachable;
win.cursor_timer.stop() catch unreachable;
}
}