1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 02:12:30 +01:00

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
2023-03-09 20:15:44 +08:00
committed by Carlos R. Mafra
parent ac6d284269
commit 3e991badf7

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);
}