Merge "Allow MSIME to set inactive when window loses focus." into qt-dev