diff --git a/src/main.rs b/src/main.rs index 78d87d4..7327d04 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,6 +18,10 @@ sctk::default_environment!(SeasonalClock, desktop); fn main() { let config = get_config(); + run_windowed(&config); +} + +fn run_windowed(config: &Option) { let (env, display, queue) = sctk::new_default_environment!(SeasonalClock, desktop) .expect("Unable to connect to a Wayland compositor"); @@ -66,7 +70,7 @@ fn main() { &mut pool, window.surface(), dimensions, - &config, + config, &hour_name_path_cache, ) .expect("Failed to draw"); @@ -101,7 +105,7 @@ fn main() { &mut pool, window.surface(), dimensions, - &config, + config, &hour_name_path_cache, ) .expect("Failed to draw"); @@ -131,7 +135,7 @@ fn main() { &mut pool, window.surface(), dimensions, - &config, + config, &hour_name_path_cache, ) .expect("Failed to draw")