Skip to content

Commit 3a520dc

Browse files
committed
fix: Window opening on dual screen pop-os#1183
1 parent a49d7be commit 3a520dc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/auto_tiler.ts

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

688+
//if (onto.workspace_id() == win.workspace_id()) {
689+
// return onto.meta.get_monitor() == win.meta.get_monitor() && onto.workspace_id() == win.workspace_id()
690+
// ? Ok(onto)
691+
// : Err('window is not on the same monitor or workspace');
692+
//}
693+
688694
return onto.meta.get_monitor() == win.meta.get_monitor() && onto.workspace_id() == win.workspace_id()
689-
? Ok(onto)
690-
: Err('window is not on the same monitor or workspace');
695+
? Ok(onto)
696+
: Err('window is not on the same monitor or workspace');
691697
}
692698

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

0 commit comments

Comments
 (0)