mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
WindowServer+Userland: Pass wallpapers as Gfx::Bitmap
instead of path
The WindowServer _really_ does not need to know the filesystem path to it's wallpaper, and allows setting arbitrary wallpapers (those outside of `/res/wallpapers`). The GUI::Desktop will keep track of the path to the wallpaper (if any), and save it to config if desired (to be persisted). This avoids the need to `unveil` paths to the wallpaper, fixing #11158
This commit is contained in:
parent
f538545987
commit
a0e7a4b9a8
Notes:
sideshowbarker
2024-07-17 18:49:39 +09:00
Author: https://github.com/drunderscore
Commit: a0e7a4b9a8
Pull-request: https://github.com/SerenityOS/serenity/pull/11523
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/creator1creeper1
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
13 changed files with 61 additions and 58 deletions
|
@ -58,7 +58,7 @@ bool MonitorWidget::set_wallpaper(String path)
|
|||
return true;
|
||||
}
|
||||
|
||||
String MonitorWidget::wallpaper()
|
||||
StringView MonitorWidget::wallpaper() const
|
||||
{
|
||||
return m_desktop_wallpaper_path;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ void MonitorWidget::set_wallpaper_mode(String mode)
|
|||
update();
|
||||
}
|
||||
|
||||
String MonitorWidget::wallpaper_mode()
|
||||
StringView MonitorWidget::wallpaper_mode() const
|
||||
{
|
||||
return m_desktop_wallpaper_mode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue