I noticed that after a loop, sometimes a bug occurs with the treebar update, I managed to reproduce it with a specific code.
Type this in a status window:
//Echo -a $time | var %a 1000000 | while (%a) dec %a | echo -a $time
when it's done, wait one second and change the active window, the color of the item in the treebar for that status window is the Event color (options > display), instead of black.
Also, the -g[N] switch for /window supports N = 3, (set the Event color), but it's not documented in the help file