Re-focus window on workspace on corresponding window blur

Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Kirill Bulatov
2023-12-12 15:36:20 +02:00
co-authored by Antonio
parent 717b2885f8
commit 2cde1a2e15
3 changed files with 85 additions and 61 deletions
+1 -1
View File
@@ -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);
})