fix: correct smart corner events
This commit is contained in:
@@ -22,7 +22,8 @@ class SmartCornersService(Service):
|
|||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self._state: dict[str, bool] = {}
|
self._state: dict[str, bool] = {}
|
||||||
i3 = get_i3_connection()
|
i3 = get_i3_connection()
|
||||||
i3.connect("event::smart_corners", self._on_event)
|
i3.connect("event::smart_corners::active", self._on_event)
|
||||||
|
i3.connect("event::smart_corners::inactive", self._on_event)
|
||||||
|
|
||||||
def get(self, output: str) -> bool:
|
def get(self, output: str) -> bool:
|
||||||
"""Latest known state for an output, or False if unseen."""
|
"""Latest known state for an output, or False if unseen."""
|
||||||
|
|||||||
Reference in New Issue
Block a user