1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

WindowServer: Always fill the menubar with color behind applets

Otherwise, menu applets with an alpha channel may leave behind ghost
pixels when updating.

Fixes #949.
This commit is contained in:
Andreas Kling 2019-12-29 21:18:38 +01:00
parent 8721d54f24
commit 27df4eb43d

View file

@ -277,6 +277,7 @@ void WSMenuManager::draw_applet(const WSWindow& applet)
if (!applet.backing_store())
return;
Painter painter(*window().backing_store());
painter.fill_rect(applet.rect_in_menubar(), WSWindowManager::the().palette().window());
painter.blit(applet.rect_in_menubar().location(), *applet.backing_store(), applet.backing_store()->rect());
}