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
commit 19c744ab82
Notes: sideshowbarker 2024-07-19 07:13:32 +09:00

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