only ungrab on main window too