mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
WindowManager: Allow compositor to have an empty bitmap as a wallpaper
This will make the compositor draw our colour wallpaper, instead
This commit is contained in:
parent
711bcff0da
commit
19c744ab82
Notes:
sideshowbarker
2024-07-19 07:13:32 +09:00
Author: https://github.com/zlotny
Commit: 19c744ab82
Pull-request: https://github.com/SerenityOS/serenity/pull/1998
Reviewed-by: https://github.com/awesomekling
1 changed files with 0 additions and 4 deletions
|
@ -351,10 +351,6 @@ bool Compositor::set_wallpaper(const String& path, Function<void(bool)>&& callba
|
|||
},
|
||||
|
||||
[this, path, callback = move(callback)](RefPtr<Gfx::Bitmap> bitmap) {
|
||||
if (!bitmap) {
|
||||
callback(false);
|
||||
return;
|
||||
}
|
||||
m_wallpaper_path = path;
|
||||
m_wallpaper = move(bitmap);
|
||||
invalidate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue