|
|
@ -51,7 +51,6 @@ pub struct GlutinWindowWrapper {
|
|
|
|
mouse_manager: MouseManager,
|
|
|
|
mouse_manager: MouseManager,
|
|
|
|
title: String,
|
|
|
|
title: String,
|
|
|
|
fullscreen: bool,
|
|
|
|
fullscreen: bool,
|
|
|
|
transparency: f32,
|
|
|
|
|
|
|
|
saved_inner_size: PhysicalSize<u32>,
|
|
|
|
saved_inner_size: PhysicalSize<u32>,
|
|
|
|
saved_grid_size: Option<Dimensions>,
|
|
|
|
saved_grid_size: Option<Dimensions>,
|
|
|
|
ui_command_sender: LoggingTx<UiCommand>,
|
|
|
|
ui_command_sender: LoggingTx<UiCommand>,
|
|
|
@ -77,12 +76,6 @@ impl GlutinWindowWrapper {
|
|
|
|
if self.fullscreen != fullscreen {
|
|
|
|
if self.fullscreen != fullscreen {
|
|
|
|
self.toggle_fullscreen();
|
|
|
|
self.toggle_fullscreen();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let transparency = { SETTINGS.get::<WindowSettings>().transparency };
|
|
|
|
|
|
|
|
if self.transparency != transparency {
|
|
|
|
|
|
|
|
//TODO: HERE REDRAW WINDOW
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[allow(clippy::needless_collect)]
|
|
|
|
#[allow(clippy::needless_collect)]
|
|
|
@ -317,7 +310,6 @@ pub fn create_window(
|
|
|
|
mouse_manager: MouseManager::new(ui_command_sender.clone()),
|
|
|
|
mouse_manager: MouseManager::new(ui_command_sender.clone()),
|
|
|
|
title: String::from("Neovide"),
|
|
|
|
title: String::from("Neovide"),
|
|
|
|
fullscreen: false,
|
|
|
|
fullscreen: false,
|
|
|
|
transparency: 1.0,
|
|
|
|
|
|
|
|
saved_inner_size,
|
|
|
|
saved_inner_size,
|
|
|
|
saved_grid_size: None,
|
|
|
|
saved_grid_size: None,
|
|
|
|
ui_command_sender,
|
|
|
|
ui_command_sender,
|
|
|
|