-Fix a variety of very strange bugs when clicking around on palettes in different files in the palette editor.