mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
WindowServer+MouseSettings: Add ability to configure double-click speed (#5876)
This adds a double-click speed slider control to the Mouse Settings panel, and value labels for both the movement speed and double-click speed sliders. To allow for updating and persisting the configured double-click speed through the WindowServer, two IPC calls - `SetDoubleClickSpeed` and `GetDoubleClickSpeed` - have been added.
This commit is contained in:
parent
e55b8712d4
commit
a106f852d3
10 changed files with 315 additions and 70 deletions
|
@ -47,6 +47,9 @@
|
|||
|
||||
namespace WindowServer {
|
||||
|
||||
const int double_click_speed_max = 900;
|
||||
const int double_click_speed_min = 100;
|
||||
|
||||
class Screen;
|
||||
class MouseEvent;
|
||||
class Window;
|
||||
|
@ -151,6 +154,8 @@ public:
|
|||
|
||||
void set_acceleration_factor(double);
|
||||
void set_scroll_step_size(unsigned);
|
||||
void set_double_click_speed(int);
|
||||
int double_click_speed() const;
|
||||
|
||||
Window* set_active_input_window(Window*);
|
||||
void restore_active_input_window(Window*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue