fix cursorFollowsFocus setting after c7effc8913

This commit is contained in:
Peter Fajdiga
2025-10-22 21:01:06 +02:00
parent c7752bf20a
commit 7f5745b2cf

View File

@@ -5,10 +5,12 @@ class World {
private readonly workspaceSignalManager: SignalManager;
private readonly shortcutActions: ShortcutAction[];
private readonly screenResizedDelayer: Delayer;
private readonly cursorFollowsFocus: boolean;
constructor(config: Config) {
const focusPasser = new FocusPassing.Passer();
this.workspaceSignalManager = initWorkspaceSignalHandlers(this, focusPasser);
this.cursorFollowsFocus = config.cursorFollowsFocus;
let presetWidths = {
next: (currentWidth: number, minWidth: number, maxWidth: number) => currentWidth,
@@ -103,7 +105,7 @@ class World {
}
private moveCursorToFocus() {
if (Workspace.activeWindow !== null) {
if (this.cursorFollowsFocus && Workspace.activeWindow !== null) {
// Only move cursor for tiled windows
const tiledWindow = this.clientManager.findTiledWindow(Workspace.activeWindow);
if (tiledWindow === null) {