incomplete fix

refactoring is done
I need to understand what happens when user resizes window manually, and
invoke this coupled with VIDEORESIZE