Merge pull request #991 from LokiLuciferase/feature/title-change-on-workspace-switch

poll window title also on workspace change (not only window events)
This commit is contained in:
tobi-wan-kenobi 2023-09-13 21:25:16 +02:00 committed by GitHub
commit 8583b5123e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()