Don't create an initial surface
This commit is contained in:
parent
84fcfb8021
commit
c655ea1823
1 changed files with 1 additions and 8 deletions
|
|
@ -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()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue