stable window resizing

Updated frame calculation and position anchoring in WM_SIZING for
stability.
Merge pull request #22 from kevinic/upstream

stable window resizing