remove unnecessary windows right margin, once drawInTitleBar is turned off