From 5a621d807650ab11536974839b444a9df2e301da Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sun, 6 Oct 2024 22:36:37 +0900 Subject: [PATCH] fix: examples --- iced_examples/counter/src/main.rs | 2 +- iced_examples/counter_muti/src/main.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iced_examples/counter/src/main.rs b/iced_examples/counter/src/main.rs index 9104ccc..2366f5f 100644 --- a/iced_examples/counter/src/main.rs +++ b/iced_examples/counter/src/main.rs @@ -15,7 +15,7 @@ pub fn main() -> Result<(), iced_layershell::Error> { let start_mode = match binded_output_name { Some(output) => StartMode::TargetScreen(output), - None => StartMode::AllScreens, + None => StartMode::Active, }; Counter::run(Settings { diff --git a/iced_examples/counter_muti/src/main.rs b/iced_examples/counter_muti/src/main.rs index a52f795..c8a7f76 100644 --- a/iced_examples/counter_muti/src/main.rs +++ b/iced_examples/counter_muti/src/main.rs @@ -8,15 +8,17 @@ use iced_runtime::window::Action as WindowAction; use iced_runtime::{task, Action}; use iced_layershell::reexport::{Anchor, KeyboardInteractivity, Layer, NewLayerShellSettings}; -use iced_layershell::settings::{LayerShellSettings, Settings}; +use iced_layershell::settings::{LayerShellSettings, Settings, StartMode}; use iced_layershell::to_layer_message; use iced_layershell::MultiApplication; + pub fn main() -> Result<(), iced_layershell::Error> { Counter::run(Settings { layer_settings: LayerShellSettings { size: Some((0, 400)), exclusive_zone: 400, anchor: Anchor::Bottom | Anchor::Left | Anchor::Right, + start_mode: StartMode::AllScreens, ..Default::default() }, ..Default::default()