feat(wm): track virtual desktop ids on state and global state

Also moved out State and GlobalState to state.rs to match the emerging
pattern in komorebi for Mac.
This commit is contained in:
LGUG2Z
2025-10-14 13:11:10 -07:00
parent 2ac1929117
commit e953715fef
9 changed files with 320 additions and 295 deletions

View File

@@ -103,7 +103,7 @@ fn process_hwnd() -> Option<isize> {
}
pub enum KomorebiEvent {
Notification(komorebi_client::Notification),
Notification(Box<komorebi_client::Notification>),
Reconnect,
}
@@ -381,7 +381,7 @@ fn main() -> color_eyre::Result<()> {
Ok(notification) => {
tracing::debug!("received notification from komorebi");
if let Err(error) = tx_gui.send(KomorebiEvent::Notification(notification)) {
if let Err(error) = tx_gui.send(KomorebiEvent::Notification(Box::new(notification))) {
tracing::error!("could not send komorebi notification update to gui thread: {error}")
}