From a3b85883f8630a49bbe6faa46f6e6cf4a08e3a89 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Nov 2017 22:49:27 +0530 Subject: [PATCH] Block cursor should not be affected by background_opacity --- kitty/cell_vertex.glsl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index d0b800e00..45098c46e 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -178,6 +178,8 @@ void main() { #if defined(TRANSPARENT) && !defined(SPECIAL) // If the background color is default, set its opacity to background_opacity, otherwise it should be opaque bg_alpha = step(0.5, float(colors[bg_index] & BYTE_MASK)); + // Cursor must not be affected by background_opacity + bg_alpha = mix(bg_alpha, 1.0, cursor); bg_alpha = bg_alpha + (1.0f - bg_alpha) * background_opacity; #endif