From 49aba222933d8b0ed0a1a1cb7e82e366db0c1551 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Tue, 14 Sep 2021 17:22:41 +0200 Subject: [PATCH] fix(tiling): Ignore if mouse is on separate display on window attach --- src/auto_tiler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auto_tiler.ts b/src/auto_tiler.ts index 45e99b1f..7d233e13 100644 --- a/src/auto_tiler.ts +++ b/src/auto_tiler.ts @@ -685,9 +685,9 @@ export class AutoTiler { return Err('focused window is not attached'); } - return onto.meta.get_monitor() == win.meta.get_monitor() && onto.workspace_id() == win.workspace_id() + return onto.workspace_id() == win.workspace_id() ? Ok(onto) - : Err('window is not on the same monitor or workspace'); + : Err('window is not on the same workspace'); } private toggle_orientation_(ext: Ext, focused: ShellWindow): Result {