mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-25 19:29:49 +00:00
Drop window borrow before calling makeKeyAndOrderFront
We're seeing some stack traces where calling `makeKeyAndOrderFront` could invoke `setFrameSize`, which is causing a double borrow.
This commit is contained in:
parent
b49b11f5af
commit
d4e0f73ffe
1 changed files with 2 additions and 1 deletions
|
@ -402,7 +402,8 @@ impl platform::Window for Window {
|
|||
}
|
||||
|
||||
fn activate(&self) {
|
||||
unsafe { msg_send![self.0.borrow().native_window, makeKeyAndOrderFront: nil] }
|
||||
let window = self.0.borrow().native_window;
|
||||
unsafe { msg_send![window, makeKeyAndOrderFront: nil] }
|
||||
}
|
||||
|
||||
fn set_title(&mut self, title: &str) {
|
||||
|
|
Loading…
Reference in a new issue