Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tiling): Windows launching onto window that isn't focused #1171

Merged
merged 4 commits into from
Sep 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(tiling): Ignore if mouse is on separate display on window attach
  • Loading branch information
mmstick committed Sep 14, 2021
commit 4327e86c0a1266a9733b8cc2ea204c58845c2b48
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