From 822a0eadcc7c157c69df6bf29e71ed1256791b8f Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 8 Jul 2026 13:22:09 +0545 Subject: [PATCH] feat(src/window/panel): connect fullscreen state change handler Add handler for fullscreen changes to automatically toggle panel visibility, improving user experience. --- src/window/panel/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/window/panel/main.py b/src/window/panel/main.py index 6181dfb..63d3b14 100644 --- a/src/window/panel/main.py +++ b/src/window/panel/main.py @@ -146,6 +146,9 @@ class Panel(Window): # Connect to DND state changes for notification icon modus_service.connect("dont-disturb-changed", self.on_dnd_changed) + # Hide/show panel on fullscreen toggle + modus_service.connect("fullscreen-changed", self._on_fullscreen_changed) + # Connect to notification service for icon state updates notification_service.connect( "notify::count", self.on_notification_count_changed @@ -166,6 +169,9 @@ class Panel(Window): def on_dnd_changed(self, _, dnd_state): self.update_notification_icon() # Update notification icon when DND changes + def _on_fullscreen_changed(self, _, is_fullscreen): + self.set_visible(not is_fullscreen) + def on_notification_count_changed(self, service, *args): self.update_notification_icon()