Fix Some Bugs in Snap-in Window Code

1) Fix unsnapping windows sometimes not going back to original size

2) Fix tapping on buttons without moving window cause it to be unsnapped
Fix Maximizing Window when snapped causes a FC
Fix titlebar not able to move window when "Allow ActionBar To Move" is disabled