Skip to content

Commit

Permalink
fix: examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 6, 2024
1 parent 8f86831 commit 5a621d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iced_examples/counter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion iced_examples/counter_muti/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5a621d8

Please sign in to comment.