Make sure to refresh the size before moving the window.

This fixes issues with stalonetray, which is shrunk when moved.