diff --git a/src/renderer/Metal.zig b/src/renderer/Metal.zig index 84c4b192e..c0f5b3ac9 100644 --- a/src/renderer/Metal.zig +++ b/src/renderer/Metal.zig @@ -494,6 +494,10 @@ pub fn render( // If the cursor isn't a blinking style, then never blink. if (!selected_cursor_style.blinking()) break :visible true; + // If we're not focused, our cursor is always visible so that + // we can show the hollow box. + if (!self.focused) break :visible true; + // Otherwise, adhere to our current state. break :visible self.cursor_visible; }; diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig index b6e251711..d3db137ce 100644 --- a/src/renderer/OpenGL.zig +++ b/src/renderer/OpenGL.zig @@ -736,6 +736,10 @@ pub fn render( // If the cursor isn't a blinking style, then never blink. if (!selected_cursor_style.blinking()) break :visible true; + // If we're not focused, our cursor is always visible so that + // we can show the hollow box. + if (!self.focused) break :visible true; + // Otherwise, adhere to our current state. break :visible self.cursor_visible; };