From e3e02c72719b2ceff0c0445b9441f989d00063d8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Dec 2019 22:34:56 +0530 Subject: [PATCH] Fix #2180 --- kitty/cell_vertex.glsl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index 9a17f1246..1187cce3d 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -220,6 +220,10 @@ void main() { // Selection and cursor bg = choose_color(float(is_selected & ONE), color_to_vec(highlight_bg), bg); background = choose_color(cell_has_block_cursor, color_to_vec(cursor_color), bg); +#if !defined(TRANSPARENT) && defined(SPECIAL) + float is_special_cell = cell_has_block_cursor + float(is_selected & ONE); + bg_alpha = step(0.5, is_special_cell); +#endif #endif #endif