Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix: add missing check for whether cursor jump should be enabled (#763)

lars-berger2e63e90b297b
diff --git a/packages/wm/src/common/commands/platform_sync.rs b/packages/wm/src/common/commands/platform_sync.rs
index 189e88c4..579fd7a0 100644
--- a/packages/wm/src/common/commands/platform_sync.rs
+++ b/packages/wm/src/common/commands/platform_sync.rs
@@ -32,7 +32,10 @@ pub fn platform_sync(
state.focused_container().context("No focused container.")?;
if state.pending_sync.cursor_jump {
- jump_cursor(focused_container.clone(), state, config)?;
+ if config.value.general.cursor_jump.enabled {
+ jump_cursor(focused_container.clone(), state, config)?;
+ }
+
state.pending_sync.cursor_jump = false;
}