Skip to content

Commit

Permalink
fix(NiriService): sync windows on "WindowsChanged" and ``"Windo…
Browse files Browse the repository at this point in the history
…wClosed"`` (#168)
  • Loading branch information
linkfrg authored Feb 25, 2025
1 parent 9a81720 commit eb0c0d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ignis/services/niri/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def __on_event_received(self, event: str) -> None:
case "WindowOpenedOrChanged":
self.__sync_active_window()
self.__sync_windows()
case "WindowsChanged":
self.__sync_windows()
case "WindowClosed":
self.__sync_windows()

except KeyError:
logger.warning(f"[Niri Service] non matching event: {event}")
Expand Down

0 comments on commit eb0c0d1

Please sign in to comment.