Re-focus window on workspace on corresponding window blur
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
co-authored by
Antonio
parent
717b2885f8
commit
2cde1a2e15
@@ -532,7 +532,7 @@ impl Workspace {
|
||||
cx.notify()
|
||||
})
|
||||
.detach();
|
||||
cx.on_window_focus_lost(|this, cx| {
|
||||
cx.on_blur_window(|this, cx| {
|
||||
let focus_handle = this.focus_handle(cx);
|
||||
cx.focus(&focus_handle);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user