mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
cursor should be a hollow rect on unfocus, regression from e163e4962baad09cd2c36be1529dee4fcf1220b0
This commit is contained in:
@ -869,8 +869,13 @@ fn renderTimerCallback(t: *libuv.Timer) void {
|
||||
const win = t.getData(Window).?;
|
||||
|
||||
// Setup our cursor settings
|
||||
win.grid.cursor_visible = win.terminal_cursor.visible and !win.terminal_cursor.blink;
|
||||
win.grid.cursor_style = Grid.CursorStyle.fromTerminal(win.terminal_cursor.style) orelse .box;
|
||||
if (win.focused) {
|
||||
win.grid.cursor_visible = win.terminal_cursor.visible and !win.terminal_cursor.blink;
|
||||
win.grid.cursor_style = Grid.CursorStyle.fromTerminal(win.terminal_cursor.style) orelse .box;
|
||||
} else {
|
||||
win.grid.cursor_visible = true;
|
||||
win.grid.cursor_style = .box_hollow;
|
||||
}
|
||||
|
||||
// Calculate foreground and background colors
|
||||
const bg = win.grid.background;
|
||||
|
Reference in New Issue
Block a user