flush when setting mouse mode