fix #1005,add timer to fix freeze
--make less intrusive the repositioning of the screen edge ghost windows