Skip to content

Commit 652c30e

Browse files
author
Tony Crisci
committed
make all base events subscribable
fixes #127
1 parent 672ca46 commit 652c30e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

i3ipc/events.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ class Event(Enum):
4545
INPUT_REMOVED = 'input::removed'
4646

4747

48-
Event._subscribable_events = [
49-
Event.WORKSPACE, Event.OUTPUT, Event.MODE, Event.WINDOW, Event.BARCONFIG_UPDATE, Event.BINDING,
50-
Event.SHUTDOWN, Event.TICK
51-
]
48+
Event._subscribable_events = [ e for e in Event if '::' not in e.value ]
5249

5350

5451
class WorkspaceEvent(IpcBaseEvent):

0 commit comments

Comments
 (0)