Skip to content

Commit 4327e86

Browse files
committed
fix(tiling): Ignore if mouse is on separate display on window attach
1 parent e3923ad commit 4327e86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auto_tiler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@ export class AutoTiler {
685685
return Err('focused window is not attached');
686686
}
687687

688-
return onto.meta.get_monitor() == win.meta.get_monitor() && onto.workspace_id() == win.workspace_id()
688+
return onto.workspace_id() == win.workspace_id()
689689
? Ok(onto)
690-
: Err('window is not on the same monitor or workspace');
690+
: Err('window is not on the same workspace');
691691
}
692692

693693
private toggle_orientation_(ext: Ext, focused: ShellWindow): Result<void, string> {

0 commit comments

Comments
 (0)