diff options
author | end-4 <[email protected]> | 2023-08-24 03:40:19 +0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-23 22:40:19 +0200 |
commit | 17ea7db23a21a3150343b3ab0c9404dff8d198b8 (patch) | |
tree | 4599f5d2f176665f301ba1652f537b525f27538f /src/config/ConfigManager.cpp | |
parent | 4d14edd8a53389b2583a00da1484bec4408d9207 (diff) | |
download | Hyprland-17ea7db23a21a3150343b3ab0c9404dff8d198b8.tar.gz Hyprland-17ea7db23a21a3150343b3ab0c9404dff8d198b8.zip |
gestures: Swipe direction lock (#3052)
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r-- | src/config/ConfigManager.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index fffa61a0..908f15ff 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -219,16 +219,18 @@ void CConfigManager::setDefaultVars() { configValues["binds:allow_workspace_cycles"].intValue = 0; configValues["binds:focus_preferred_method"].intValue = 0; - configValues["gestures:workspace_swipe"].intValue = 0; - configValues["gestures:workspace_swipe_fingers"].intValue = 3; - configValues["gestures:workspace_swipe_distance"].intValue = 300; - configValues["gestures:workspace_swipe_invert"].intValue = 1; - configValues["gestures:workspace_swipe_min_speed_to_force"].intValue = 30; - configValues["gestures:workspace_swipe_cancel_ratio"].floatValue = 0.5f; - configValues["gestures:workspace_swipe_create_new"].intValue = 1; - configValues["gestures:workspace_swipe_forever"].intValue = 0; - configValues["gestures:workspace_swipe_numbered"].intValue = 0; - configValues["gestures:workspace_swipe_use_r"].intValue = 0; + configValues["gestures:workspace_swipe"].intValue = 0; + configValues["gestures:workspace_swipe_fingers"].intValue = 3; + configValues["gestures:workspace_swipe_distance"].intValue = 300; + configValues["gestures:workspace_swipe_invert"].intValue = 1; + configValues["gestures:workspace_swipe_min_speed_to_force"].intValue = 30; + configValues["gestures:workspace_swipe_cancel_ratio"].floatValue = 0.5f; + configValues["gestures:workspace_swipe_create_new"].intValue = 1; + configValues["gestures:workspace_swipe_direction_lock"].intValue = 1; + configValues["gestures:workspace_swipe_direction_lock_threshold"].intValue = 10; + configValues["gestures:workspace_swipe_forever"].intValue = 0; + configValues["gestures:workspace_swipe_numbered"].intValue = 0; + configValues["gestures:workspace_swipe_use_r"].intValue = 0; configValues["xwayland:use_nearest_neighbor"].intValue = 1; configValues["xwayland:force_zero_scaling"].intValue = 0; |