summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Desktop.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-03 13:33:59 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-03 21:14:40 +0200
commit5bb79ea0a79322d944368825ec617ccfb8912b81 (patch)
tree120c86845f8285f398000386722d0a7cda312440 /Userland/Libraries/LibGUI/Desktop.cpp
parent78803ce384d62c40958cc8191a036307f5d8bc9f (diff)
downloadserenity-5bb79ea0a79322d944368825ec617ccfb8912b81.zip
Userland: Update IPC calls to use proxies
This updates all existing code to use the auto-generated client methods instead of post_message/send_sync.
Diffstat (limited to 'Userland/Libraries/LibGUI/Desktop.cpp')
-rw-r--r--Userland/Libraries/LibGUI/Desktop.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGUI/Desktop.cpp b/Userland/Libraries/LibGUI/Desktop.cpp
index 77d40ed2b3..8dda3d099f 100644
--- a/Userland/Libraries/LibGUI/Desktop.cpp
+++ b/Userland/Libraries/LibGUI/Desktop.cpp
@@ -34,18 +34,18 @@ void Desktop::did_receive_screen_rect(Badge<WindowServerConnection>, const Gfx::
void Desktop::set_background_color(const StringView& background_color)
{
- WindowServerConnection::the().post_message(Messages::WindowServer::SetBackgroundColor(background_color));
+ WindowServerConnection::the().async_set_background_color(background_color);
}
void Desktop::set_wallpaper_mode(const StringView& mode)
{
- WindowServerConnection::the().post_message(Messages::WindowServer::SetWallpaperMode(mode));
+ WindowServerConnection::the().async_set_wallpaper_mode(mode);
}
bool Desktop::set_wallpaper(const StringView& path, bool save_config)
{
- WindowServerConnection::the().post_message(Messages::WindowServer::AsyncSetWallpaper(path));
- auto ret_val = WindowServerConnection::the().wait_for_specific_message<Messages::WindowClient::AsyncSetWallpaperFinished>()->success();
+ WindowServerConnection::the().async_set_wallpaper(path);
+ auto ret_val = WindowServerConnection::the().wait_for_specific_message<Messages::WindowClient::SetWallpaperFinished>()->success();
if (ret_val && save_config) {
RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("WindowManager");
@@ -59,7 +59,7 @@ bool Desktop::set_wallpaper(const StringView& path, bool save_config)
String Desktop::wallpaper() const
{
- return WindowServerConnection::the().send_sync<Messages::WindowServer::GetWallpaper>()->path();
+ return WindowServerConnection::the().get_wallpaper().path();
}
}