feat(bar): update bar on display connection change

Use the new `MonitorNotification` to reapply the config and recalculate
the position on `MonitorNotification::DisplayConnectionChange`.
This commit is contained in:
alex-ds13
2025-01-24 11:48:29 -08:00
committed by Jeezy
parent 5c3c3659b5
commit 4a8362336f
2 changed files with 38 additions and 0 deletions
+1
View File
@@ -505,6 +505,7 @@ impl KomorebiNotificationState {
) {
match notification.event {
NotificationEvent::WindowManager(_) => {}
NotificationEvent::Monitor(_) => {}
NotificationEvent::Socket(message) => match message {
SocketMessage::ReloadStaticConfiguration(path) => {
if let Ok(config) = komorebi_client::StaticConfig::read(&path) {