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.
This commit is contained in:
David Maciejak authored and Carlos R. Mafra committed 2023-03-09 15:05:58 +00:00
1 parent ac6d284269
commit 3e991badf7
1 file changed
+1
+1
View File
@@ -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);
}