Merge "Ignore motion event of invalid pointer" into qt-dev