From 2eabc22b3831265bec4e4a0d5ed5e9c0a00f50ab Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 30 Sep 2025 09:01:44 +0300 Subject: config: Add merging for Gestures --- src/layout/monitor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/monitor.rs') diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 5e463a7e..8f322e9e 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -1904,7 +1904,7 @@ impl Monitor { }; let config = &self.options.gestures.dnd_edge_workspace_switch; - let trigger_height = config.trigger_height.0; + let trigger_height = config.trigger_height; // Restrict the scrolling horizontally to the strip of workspaces to avoid unwanted trigger // after using the hot corner or during horizontal scroll. @@ -1958,7 +1958,7 @@ impl Monitor { let time_delta = now.saturating_sub(last_time).as_secs_f64(); - let delta = delta * time_delta * config.max_speed.0; + let delta = delta * time_delta * config.max_speed; gesture.tracker.push(delta, now); -- cgit