WindowServer: Initial wallpaper must not be NULL

This used to crash 'pape -c' on a fresh image. Note that the special value
is '', the empty string, and *not* NULL, i.e. an unset string. An empty
string implies that the wallpaper is not an image, but rather a solid color.
This commit is contained in:
Ben Wiederhake 2020-12-05 17:47:51 +01:00 committed by Andreas Kling
parent 3852168c84
commit 4427da989f
Notes: sideshowbarker 2024-07-19 01:00:02 +09:00

View file

@ -114,7 +114,7 @@ private:
Gfx::IntRect m_last_dnd_rect;
Gfx::IntRect m_last_geometry_label_rect;
String m_wallpaper_path;
String m_wallpaper_path { "" };
WallpaperMode m_wallpaper_mode { WallpaperMode::Unchecked };
RefPtr<Gfx::Bitmap> m_wallpaper;