mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +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:
parent
8721d54f24
commit
27df4eb43d
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ void WSMenuManager::draw_applet(const WSWindow& applet)
|
||||||
if (!applet.backing_store())
|
if (!applet.backing_store())
|
||||||
return;
|
return;
|
||||||
Painter painter(*window().backing_store());
|
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());
|
painter.blit(applet.rect_in_menubar().location(), *applet.backing_store(), applet.backing_store()->rect());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue