mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
renderer: unfocused cursor should always be fully opaque
This commit is contained in:
@ -1422,7 +1422,7 @@ fn addCursor(
|
||||
};
|
||||
|
||||
const color = self.config.cursor_color orelse self.config.foreground;
|
||||
const alpha: u8 = alpha: {
|
||||
const alpha: u8 = if (!self.focused) 255 else alpha: {
|
||||
const alpha = 255 * self.config.cursor_opacity;
|
||||
break :alpha @intFromFloat(@ceil(alpha));
|
||||
};
|
||||
|
@ -873,7 +873,7 @@ fn addCursor(
|
||||
};
|
||||
|
||||
const color = self.config.cursor_color orelse self.config.foreground;
|
||||
const alpha: u8 = alpha: {
|
||||
const alpha: u8 = if (!self.focused) 255 else alpha: {
|
||||
const alpha = 255 * self.config.cursor_opacity;
|
||||
break :alpha @intFromFloat(@ceil(alpha));
|
||||
};
|
||||
|
Reference in New Issue
Block a user