feat: allow creating apps with no main window on wayland

This commit is contained in:
Ashley Wulber 2023-08-23 14:51:49 -04:00 committed by Ashley Wulber
parent db8e791b87
commit 55416c8b9d
2 changed files with 21 additions and 11 deletions

View file

@ -19,6 +19,10 @@ pub struct Settings {
#[cfg(feature = "wayland")]
pub(crate) autosize: bool,
/// Set the application to not create a main window
#[cfg(feature = "wayland")]
pub(crate) no_main_window: bool,
/// Whether the window should have a border, a title bar, etc. or not.
pub(crate) client_decorations: bool,
@ -71,6 +75,8 @@ impl Default for Settings {
antialiasing: true,
#[cfg(feature = "wayland")]
autosize: false,
#[cfg(feature = "wayland")]
no_main_window: false,
client_decorations: true,
debug: false,
default_font: font::FONT,