What do you want to happen when you click on another window? You may want to look at the actions you have defined for mousebind. It may be as simple as removing the "raise" action.