Skip to content

Commit 1801a83

Browse files
committed
fix(tiler): Wrong window attachment on creation
1 parent 3fcfb9d commit 1801a83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/auto_tiler.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export class AutoTiler {
199199
const result = this.fetch_mode(ext, win, ignore_focus);
200200
this.detach_window(ext, win.entity);
201201
if (result.kind == ERR) {
202+
log.debug(`attach to workspace: ${result.value}`)
202203
this.attach_to_workspace(ext, win, ext.workspace_id(win));
203204
} else {
204205
this.attach_to_window(ext, result.value, win, { auto: 0 })
@@ -655,7 +656,7 @@ export class AutoTiler {
655656
return Err('ignoring focus');
656657
}
657658

658-
const prev = ext.prev_focused[0]
659+
const prev = ext.prev_focused[1]
659660

660661
if (!prev) {
661662
return Err('no window has been previously focused');

0 commit comments

Comments
 (0)