mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-10 05:08:21 +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:
committed by
Andreas Kling
parent
0c51778510
commit
db409db4e9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user