1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00

macos: allow changing window title

This commit is contained in:
Wez Furlong 2019-08-12 21:10:38 -07:00
parent d8b143776d
commit 5f547b6972

View File

@ -137,7 +137,12 @@ impl WindowOpsMut for WindowInner {
let () = msg_send![*self.view, setNeedsDisplay: YES];
}
}
fn set_title(&mut self, title: &str) {}
fn set_title(&mut self, title: &str) {
let title = nsstring(title);
unsafe {
NSWindow::setTitle_(*self.window, *title);
}
}
}
struct Inner {