So, I think I've discovered why bbkeys has left over windows in its list on restart sometimes! (You aren't going to like this, I certainly don't).
First, lets start with how it knows what windows exist. When a window is added blackbox sends all Netizens (bbkeys, bbpager, etc) a message telling them which window has been added to the window manager. The same happens when a window is removed. Now, lets apply this to the situation when blackbox is shutting down.. It looks through all of its windows and removes them all one at a time. This is all good, except that at some point *bbkeys* is removed also. If any windows were left over at this point, the messages for their removal will not be sent to bbkeys. So, now bbkeys will have these windows left in its client list. Fun. Perhaps a blackbox protocol extension of "Clear" or "DelAll" could be added. This would be sent to all netizens at shutdown before actually removing any windows. xOr -- I am damn unsatisfied to be killed in this way.
msg07360/pgp00000.pgp
Description: PGP signature
