mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +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:
parent
0c51778510
commit
db409db4e9
Notes:
sideshowbarker
2024-07-19 00:24:11 +09:00
Author: https://github.com/IdanHo
Commit: db409db4e9
Pull-request: https://github.com/SerenityOS/serenity/pull/4641
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
6 changed files with 51 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue