From a3c09cc1be7cd0e8d6407734abe895b91c93905a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 11:55:38 +0000 Subject: [PATCH] Fix transparent background for text drag thumbnail on macOS Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/20db1e1c-78e0-46b0-aa55-281f88408d6f Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com> --- kitty/core_text.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/core_text.m b/kitty/core_text.m index b021106f2..4cbbd807c 100644 --- a/kitty/core_text.m +++ b/kitty/core_text.m @@ -952,7 +952,7 @@ cocoa_render_line_of_text(const char *text, const color_type fg, const color_typ CGContextSetShouldAntialias(ctx, true); CGContextSetShouldSmoothFonts(ctx, true); // sub-pixel antialias - CGContextSetRGBFillColor(ctx, ((bg >> 16) & 0xff) / 255.f, ((bg >> 8) & 0xff) / 255.f, (bg & 0xff) / 255.f, 1.f); + CGContextSetRGBFillColor(ctx, ((bg >> 16) & 0xff) / 255.f, ((bg >> 8) & 0xff) / 255.f, (bg & 0xff) / 255.f, ((bg >> 24) & 0xff) / 255.f); CGContextFillRect(ctx, CGRectMake(0.0, 0.0, width, height)); CGContextSetTextDrawingMode(ctx, kCGTextFill); CGContextSetTextMatrix(ctx, CGAffineTransformIdentity);