|
|
@ -18,6 +18,7 @@ use glutin::{
|
|
|
|
event_loop::{ControlFlow, EventLoop},
|
|
|
|
event_loop::{ControlFlow, EventLoop},
|
|
|
|
window::{self, Fullscreen, Icon},
|
|
|
|
window::{self, Fullscreen, Icon},
|
|
|
|
ContextBuilder, GlProfile, WindowedContext,
|
|
|
|
ContextBuilder, GlProfile, WindowedContext,
|
|
|
|
|
|
|
|
platform::unix::WindowBuilderExtUnix,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
use super::{handle_new_grid_size, settings::WindowSettings};
|
|
|
|
use super::{handle_new_grid_size, settings::WindowSettings};
|
|
|
@ -232,6 +233,9 @@ pub fn start_loop(
|
|
|
|
.with_maximized(SETTINGS.get::<CmdLineSettings>().maximized)
|
|
|
|
.with_maximized(SETTINGS.get::<CmdLineSettings>().maximized)
|
|
|
|
.with_decorations(!SETTINGS.get::<CmdLineSettings>().frameless);
|
|
|
|
.with_decorations(!SETTINGS.get::<CmdLineSettings>().frameless);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
|
|
|
|
let winit_window_builder = winit_window_builder.with_app_id("Neovide".to_string());
|
|
|
|
|
|
|
|
|
|
|
|
let windowed_context = ContextBuilder::new()
|
|
|
|
let windowed_context = ContextBuilder::new()
|
|
|
|
.with_pixel_format(24, 8)
|
|
|
|
.with_pixel_format(24, 8)
|
|
|
|
.with_stencil_buffer(8)
|
|
|
|
.with_stencil_buffer(8)
|
|
|
|