fixed issue where edges of window could be grabbed in bordered mode