Don't create an initial surface

This commit is contained in:
Ian Douglas Scott 2023-03-22 11:53:03 -07:00
parent 84fcfb8021
commit c655ea1823

View file

@ -231,7 +231,6 @@ impl Application for App {
type Flags = (); type Flags = ();
fn new(_flags: ()) -> (Self, Command<Msg>) { fn new(_flags: ()) -> (Self, Command<Msg>) {
//(Self::default(), destroy_layer_surface(SurfaceId::new(0)))
(Self::default(), Command::none()) (Self::default(), Command::none())
} }
@ -546,13 +545,7 @@ pub fn main() -> iced::Result {
App::run(iced::Settings { App::run(iced::Settings {
antialiasing: true, antialiasing: true,
exit_on_close_request: false, exit_on_close_request: false,
initial_surface: InitialSurface::LayerSurface(SctkLayerSurfaceSettings { initial_surface: InitialSurface::None,
keyboard_interactivity: KeyboardInteractivity::None,
namespace: "ignore".into(),
size: Some((Some(1), Some(1))),
layer: Layer::Background,
..Default::default()
}),
..iced::Settings::default() ..iced::Settings::default()
}) })
} }