From 76a18e1172a9389fad540fcfdf81252e237da2de Mon Sep 17 00:00:00 2001 From: networkException Date: Tue, 6 Jul 2021 19:29:30 +0200 Subject: [PATCH] WindowServer: Remove rect behind window icon in WindowSwitcher This patch removes the background behind window icons in the WindowSwitcher which looked like it was being rendered incorrectly (without alpha) previously. --- Userland/Services/WindowServer/WindowSwitcher.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Services/WindowServer/WindowSwitcher.cpp b/Userland/Services/WindowServer/WindowSwitcher.cpp index fc67e2c59a..d1704365c9 100644 --- a/Userland/Services/WindowServer/WindowSwitcher.cpp +++ b/Userland/Services/WindowServer/WindowSwitcher.cpp @@ -188,7 +188,6 @@ void WindowSwitcher::draw() Gfx::StylePainter::paint_frame(painter, thumbnail_rect.inflated(4, 4), palette, Gfx::FrameShape::Container, Gfx::FrameShadow::Sunken, 2); } Gfx::IntRect icon_rect = { thumbnail_rect.bottom_right().translated(-window.icon().width(), -window.icon().height()), { window.icon().width(), window.icon().height() } }; - painter.fill_rect(icon_rect, palette.window()); painter.blit(icon_rect.location(), window.icon(), window.icon().rect()); painter.draw_text(item_rect.translated(thumbnail_width() + 12, 0), window.computed_title(), WindowManager::the().window_title_font(), Gfx::TextAlignment::CenterLeft, text_color); auto window_details = m_windows_on_multiple_stacks ? String::formatted("{} on {}:{}", window.rect().to_string(), window.window_stack().row() + 1, window.window_stack().column() + 1) : window.rect().to_string();