Merge "Fix SetPrimaryCursorPosition() behaviour when no focus" into devel/master