Skip to content

Commit

Permalink
fix(tiling): Ignore if mouse is on separate display on window attach
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Sep 14, 2021
1 parent b79cc48 commit 49aba22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auto_tiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void, string> {
Expand Down

0 comments on commit 49aba22

Please sign in to comment.