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

WindowServer: Added configurable mouse acceleration and scroll length

The settings are also saved to the config file to survive reboots.
This commit is contained in:
Idan Horowitz 2020-12-29 23:32:54 +02:00 committed by Andreas Kling
parent 0c51778510
commit db409db4e9
6 changed files with 51 additions and 2 deletions

View file

@ -91,6 +91,8 @@ int main(int, char**)
WindowServer::Screen screen(wm_config->read_num_entry("Screen", "Width", 1024),
wm_config->read_num_entry("Screen", "Height", 768));
screen.set_acceleration_factor(atof(wm_config->read_entry("Mouse", "AccelerationFactor", "1.0").characters()));
screen.set_scroll_step_size(wm_config->read_num_entry("Mouse", "ScrollStepSize", 4));
WindowServer::Compositor::the();
auto wm = WindowServer::WindowManager::construct(*palette);
auto am = WindowServer::AppletManager::construct();