|
|
|
@ -51,6 +51,7 @@ pub struct GlutinWindowWrapper {
|
|
|
|
|
mouse_manager: MouseManager,
|
|
|
|
|
title: String,
|
|
|
|
|
fullscreen: bool,
|
|
|
|
|
transparency: f32,
|
|
|
|
|
saved_inner_size: PhysicalSize<u32>,
|
|
|
|
|
saved_grid_size: Option<Dimensions>,
|
|
|
|
|
ui_command_sender: LoggingTx<UiCommand>,
|
|
|
|
@ -76,6 +77,13 @@ impl GlutinWindowWrapper {
|
|
|
|
|
if self.fullscreen != fullscreen {
|
|
|
|
|
self.toggle_fullscreen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let transparency = { SETTINGS.get::<WindowSettings>().transparency };
|
|
|
|
|
if self.transparency != transparency {
|
|
|
|
|
self.transparency = transparency;
|
|
|
|
|
self.toggle_fullscreen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[allow(clippy::needless_collect)]
|
|
|
|
@ -267,6 +275,7 @@ pub fn create_window(
|
|
|
|
|
.with_title("Neovide")
|
|
|
|
|
.with_window_icon(Some(icon))
|
|
|
|
|
.with_maximized(cmd_line_settings.maximized)
|
|
|
|
|
.with_transparent(true)
|
|
|
|
|
.with_decorations(!cmd_line_settings.frameless);
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
@ -309,6 +318,7 @@ pub fn create_window(
|
|
|
|
|
mouse_manager: MouseManager::new(ui_command_sender.clone()),
|
|
|
|
|
title: String::from("Neovide"),
|
|
|
|
|
fullscreen: false,
|
|
|
|
|
transparency: 1.0,
|
|
|
|
|
saved_inner_size,
|
|
|
|
|
saved_grid_size: None,
|
|
|
|
|
ui_command_sender,
|
|
|
|
|