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
Notes: sideshowbarker 2024-07-19 10:33:44 +09:00

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