1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +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:
Andres Vieira 2020-04-28 15:00:43 +02:00 committed by Andreas Kling
parent 711bcff0da
commit 19c744ab82

View file

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