feat(wm): notify subscribers of monitor events

This commit allows notifying the subscribers of any monitor events like
display connection change or work area change.
This commit is contained in:
alex-ds13
2025-01-24 11:48:29 -08:00
committed by Jeezy
parent 4123c9a0e2
commit 5c3c3659b5
4 changed files with 44 additions and 19 deletions
+2
View File
@@ -32,6 +32,7 @@ pub mod workspace;
pub mod workspace_reconciliator;
use lazy_static::lazy_static;
use monitor_reconciliator::MonitorNotification;
use std::collections::HashMap;
use std::collections::VecDeque;
use std::fs::File;
@@ -283,6 +284,7 @@ pub fn current_virtual_desktop() -> Option<Vec<u8>> {
pub enum NotificationEvent {
WindowManager(WindowManagerEvent),
Socket(SocketMessage),
Monitor(MonitorNotification),
}
#[derive(Debug, Serialize, Deserialize, JsonSchema)]