When opening a path in an existing window, move it to the foreground
This commit is contained in:
parent
7c233ed682
commit
fbca28337a
5 changed files with 20 additions and 4 deletions
|
@ -347,6 +347,12 @@ impl platform::Window for Window {
|
|||
];
|
||||
}
|
||||
}
|
||||
|
||||
fn activate(&self) {
|
||||
unsafe {
|
||||
let _: () = msg_send![self.0.borrow().native_window, makeKeyAndOrderFront: nil];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl platform::WindowContext for Window {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue