Add a command line option to disable native titlebar

This commit is contained in:
Paul Rouget 2015-09-29 08:49:01 +02:00
parent d39c8546b6
commit 5be60f2c79
2 changed files with 7 additions and 0 deletions

View file

@ -87,6 +87,7 @@ impl Window {
parent: glutin::WindowID) -> Rc<Window> {
let mut glutin_window = glutin::WindowBuilder::new()
.with_title("Servo".to_string())
.with_decorations(!opts::get().no_native_titlebar)
.with_dimensions(window_size.to_untyped().width, window_size.to_untyped().height)
.with_gl(Window::gl_version())
.with_visibility(is_foreground)