diff --git a/internal/lib/i3.go b/internal/lib/i3.go index a08a764..25590fe 100644 --- a/internal/lib/i3.go +++ b/internal/lib/i3.go @@ -19,7 +19,6 @@ var WL WinList // UpdateI3WinList subsribes to all window-related events and send them to I3EventParser() for more detailed parsing. func (c *MyConfig) UpdateI3WinList() { - // TODO: Здесь получить начальный список окон, управляемых i3wm (через GetTree()) и сложить их атрибутику в переменную WL Tree, err := i3.GetTree() if err != nil { @@ -30,6 +29,8 @@ func (c *MyConfig) UpdateI3WinList() { c.ExtractProps(Tree.Root) + c.Channels.UpdateReady <- true + i3wm := i3.Subscribe(i3.WindowEventType) for i3wm.Next() {