mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 15:15:07 +00:00
WindowServer: Add methods for set background color and wallpaper mode
This commit is contained in:
parent
7194b4823e
commit
adf524015a
5 changed files with 55 additions and 1 deletions
|
@ -309,6 +309,18 @@ void ClientConnection::handle(const Messages::WindowServer::AsyncSetWallpaper& m
|
|||
});
|
||||
}
|
||||
|
||||
OwnPtr<Messages::WindowServer::SetBackgroundColorResponse> ClientConnection::handle(const Messages::WindowServer::SetBackgroundColor& message)
|
||||
{
|
||||
Compositor::the().set_backgound_color(message.background_color());
|
||||
return make<Messages::WindowServer::SetBackgroundColorResponse>();
|
||||
}
|
||||
|
||||
OwnPtr<Messages::WindowServer::SetWallpaperModeResponse> ClientConnection::handle(const Messages::WindowServer::SetWallpaperMode& message)
|
||||
{
|
||||
Compositor::the().set_wallpaper_mode(message.mode());
|
||||
return make<Messages::WindowServer::SetWallpaperModeResponse>();
|
||||
}
|
||||
|
||||
OwnPtr<Messages::WindowServer::GetWallpaperResponse> ClientConnection::handle(const Messages::WindowServer::GetWallpaper&)
|
||||
{
|
||||
return make<Messages::WindowServer::GetWallpaperResponse>(Compositor::the().wallpaper_path());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue