Merge "Fix a potential crash when calculate system gesture exclusion" into qt-dev