mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05: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
Notes:
sideshowbarker
2024-07-19 10:33:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/27df4eb43da
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue