From 3e991badf7b90d845df44babee804068e45d32aa Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Thu, 9 Mar 2023 20:15:44 +0800 Subject: [PATCH] SwitchPanel: fix app icons opacity combination For some apps the background is not displayed properly, showing some kind of shawow around the app icon like for example firefox or skype. This is due to an issue in combining alpha channels. --- src/switchpanel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switchpanel.c b/src/switchpanel.c index 4b333c36..cb6cda10 100644 --- a/src/switchpanel.c +++ b/src/switchpanel.c @@ -158,6 +158,7 @@ static void changeImage(WSwitchPanel *panel, int idecks, int selected, Bool dim, color.red = WMRedComponentOfColor(panel->gray) >> 8; color.green = WMGreenComponentOfColor(panel->gray) >> 8; color.blue = WMBlueComponentOfColor(panel->gray) >> 8; + color.alpha = 255; RFillImage(back, &color); }