watch: highlight current set

This commit is contained in:
galister
2025-11-24 14:18:04 +09:00
parent 5b40032bc3
commit 2d7714d423
13 changed files with 141 additions and 25 deletions

View File

@@ -10,6 +10,7 @@ use crate::{
},
state::AppState,
windowing::{
backend::OverlayEventData,
set::{OverlayWindowSet, SerializedWindowSet},
snap_upright,
window::OverlayWindowData,
@@ -320,6 +321,14 @@ impl<T> OverlayWindowManager<T> {
self.restore_set = new_set;
}
self.current_set = new_set;
if let Some(watch) = self.mut_by_id(self.watch_id) {
watch
.config
.backend
.notify(app, OverlayEventData::SetChanged(new_set))
.unwrap(); // TODO: handle this
}
}
pub fn show_hide(&mut self, app: &mut AppState) {