I meant more that it is not the right site to ask that question. Nupul already asked something simmilar here (you can find his posts about it) and did not come to any obvious solutions. Each window manager (or maybe desktop manager, I don't know) has its own system for keeping those associations.