Fix for #1235

Reset all mouse drag related events when ShowTitleBar is changed.
Moved SetWindowsEvents to end of ToggleVisibiltyForAllTitleElements
Merge pull request #1255 from iankerr/master

Fix for #1235