mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
WindowServer+LibGUI: Remove awkward roundtrip for set wallpaper response
Previously we would wait for a separate message confirming that a wallpaper got set instead of just calling a synchronous api. I'm guessing that this was a limitation of the IPC system when WindowServer got ported to using it. This patch removes the SetWallpaperFinished message and updates the set_wallpaper api to synchronously return a success boolean.
This commit is contained in:
parent
2cdc7c4ca0
commit
ad060befad
Notes:
sideshowbarker
2024-07-17 08:28:36 +09:00
Author: https://github.com/networkException
Commit: ad060befad
Pull-request: https://github.com/SerenityOS/serenity/pull/14755
Reviewed-by: https://github.com/linusg ✅
7 changed files with 8 additions and 17 deletions
|
@ -305,10 +305,9 @@ void ConnectionFromClient::set_window_opacity(i32 window_id, float opacity)
|
|||
it->value->set_opacity(opacity);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_wallpaper(Gfx::ShareableBitmap const& bitmap)
|
||||
Messages::WindowServer::SetWallpaperResponse ConnectionFromClient::set_wallpaper(Gfx::ShareableBitmap const& bitmap)
|
||||
{
|
||||
Compositor::the().set_wallpaper(bitmap.bitmap());
|
||||
async_set_wallpaper_finished(true);
|
||||
return Compositor::the().set_wallpaper(bitmap.bitmap());
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_background_color(String const& background_color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue