From b65303ede0750e9d83df4d2c5df67f143c9171c4 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 25 Nov 2026 03:40:14 -0700 Subject: i3 mode module fully works now; some API changes most notably, modules now have a way to request immediate redrawing Change-Id: Id060c88d3ab484addfd8ca574fbc4e2ffdbb5c8f Force-Push: yes --- src/module/time.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/module/time.rs') diff --git a/src/module/time.rs b/src/module/time.rs index 8c42aca..b875454 100644 --- a/src/module/time.rs +++ b/src/module/time.rs @@ -4,6 +4,7 @@ use crate::module::{ CreatableModule, Module }; use std::time::Duration; +use async_channel::Sender; use async_executor::StaticExecutor; use time::OffsetDateTime; use time::format_description::{ FormatDescriptionV3, parse_owned }; @@ -19,7 +20,8 @@ impl CreatableModule for TimeModule { const REQUIRED_FACILITIES: FacilityType = FacilityType::empty(); async fn new(_facilities: &mut FacilityMap, - _executor: &'static StaticExecutor) + _executor: &'static StaticExecutor, + _redraw_sender: Sender<()>) -> Result { let format_string = -- cgit 1.4.1