Render buttons border immedialtely after windo list population

This commit is contained in:
eleksir
2026-03-31 01:12:32 +03:00
parent bd6aa31c4d
commit f2c24bc0ec

View File

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