mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +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
Notes:
sideshowbarker
2024-07-19 10:33:44 +09:00
Author: https://github.com/awesomekling
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