1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

WindowServer: Add IPC calls for changing the cursor highlighting

This commit is contained in:
MacDue 2022-06-04 20:38:54 +01:00 committed by Linus Groh
parent 29d8ec1b18
commit 5fc13e1d53
3 changed files with 31 additions and 0 deletions

View file

@ -809,6 +809,26 @@ void ConnectionFromClient::apply_cursor_theme(String const& name)
WindowManager::the().apply_cursor_theme(name);
}
void ConnectionFromClient::set_cursor_highlight_radius(int radius)
{
WindowManager::the().set_cursor_highlight_radius(radius);
}
Messages::WindowServer::GetCursorHighlightRadiusResponse ConnectionFromClient::get_cursor_highlight_radius()
{
return WindowManager::the().cursor_highlight_radius();
}
void ConnectionFromClient::set_cursor_highlight_color(Gfx::Color const& color)
{
WindowManager::the().set_cursor_highlight_color(color);
}
Messages::WindowServer::GetCursorHighlightColorResponse ConnectionFromClient::get_cursor_highlight_color()
{
return WindowManager::the().cursor_highlight_color();
}
Messages::WindowServer::GetCursorThemeResponse ConnectionFromClient::get_cursor_theme()
{
auto config = Core::ConfigFile::open("/etc/WindowServer.ini").release_value_but_fixme_should_propagate_errors();