Fixed a window dragging issue.