1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:37:35 +00:00

WindowServer: Make most remaining WindowServer IPC calls async

The only remaining sync call from client to server is now the call
that switches a window's backing store. That one actually relies on
the synchronization to hand over ownership of the backing stores,
so it has to stay synchronous for now.
This commit is contained in:
Andreas Kling 2021-07-04 22:26:24 +02:00
parent 70c6090fef
commit 782a5c88ce
6 changed files with 14 additions and 14 deletions

View file

@ -24,9 +24,9 @@ constexpr int double_click_speed_default = 250;
void MouseSettingsWindow::update_window_server()
{
const float factor = m_speed_slider->value() / speed_slider_scale;
GUI::WindowServerConnection::the().set_mouse_acceleration(factor);
GUI::WindowServerConnection::the().set_scroll_step_size(m_scroll_length_spinbox->value());
GUI::WindowServerConnection::the().set_double_click_speed(m_double_click_speed_slider->value());
GUI::WindowServerConnection::the().async_set_mouse_acceleration(factor);
GUI::WindowServerConnection::the().async_set_scroll_step_size(m_scroll_length_spinbox->value());
GUI::WindowServerConnection::the().async_set_double_click_speed(m_double_click_speed_slider->value());
}
void MouseSettingsWindow::reset_default_values()