Slight fix for cursor reset
Added double-click to toggle thick resize border
Added border toggle option to context menu
Some cast corrections
Improvement to window run loop