feat(bar): hide when leaving komorebi's virtual desktop

This commit adds a new VirtualDesktopNotification which is used to
notify subscribers when the user leaves and enters the virtual desktop
associated with komorebi.

komorebi-bar consumes these notifications to minmize and restore the bar
appropriately depending on the currently focused virtual desktop.

re #1420
This commit is contained in:
LGUG2Z
2025-04-28 14:33:37 -07:00
parent 17cd0308cb
commit 577364a556
5 changed files with 82 additions and 1 deletions
+1
View File
@@ -718,6 +718,7 @@ impl KomorebiNotificationState {
let show_all_icons = render_config.borrow().show_all_icons;
match notification.event {
NotificationEvent::VirtualDesktop(_) => {}
NotificationEvent::WindowManager(_) => {}
NotificationEvent::Monitor(_) => {}
NotificationEvent::Socket(message) => match message {