this adds app_id attribute to neovide (#747)

* this adds app_id attribute to neovide

* app_id should only be included for linux builds
macos-click-through
Tim Biermann 3 years ago committed by GitHub
parent 54c875092b
commit a0d076bbda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save