clean up the code a lot
you cannot change geometry manually, but it's all stored in preferences
move all actions about window to traces