mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 02:25:28 +03:00
macos: implement window:focus()
refs: https://github.com/wez/wezterm/issues/2973
This commit is contained in:
parent
6d2b42c95e
commit
5dbdd36a72
@ -6,7 +6,7 @@ Attempts to focus and activate the window.
|
||||
|
||||
|OS |Supported?|
|
||||
|---------------|------------------------|
|
||||
|macOS |Not yet implemented |
|
||||
|macOS |Yes |
|
||||
|Windows |Yes |
|
||||
|X11 |Yes |
|
||||
|Wayland |Wayland does not allow this action|
|
||||
|
@ -994,7 +994,11 @@ impl WindowInner {
|
||||
}
|
||||
}
|
||||
|
||||
fn focus(&mut self) {}
|
||||
fn focus(&mut self) {
|
||||
unsafe{
|
||||
self.window.makeKeyAndOrderFront_(nil);
|
||||
}
|
||||
}
|
||||
|
||||
fn hide(&mut self) {
|
||||
unsafe {
|
||||
|
Loading…
Reference in New Issue
Block a user