poll window title also on workspace change (not only window events)

This commit is contained in:
Lukas Lüftinger 2023-09-13 18:02:26 +02:00
parent fded39fa81
commit b762132037

View file

@ -50,8 +50,9 @@ class Module(core.module.Module):
# create a connection with i3ipc
self.__i3 = i3ipc.Connection()
# event is called both on focus change and title change
# event is called both on focus change and title change, and on workspace change
self.__i3.on("window", lambda __p_i3, __p_e: self.__pollTitle())
self.__i3.on("workspace", lambda __p_i3, __p_e: self.__pollTitle())
# begin listening for events
threading.Thread(target=self.__i3.main).start()