Use KWindowSystem::isPlatformX11
Summary: This saves one string comparison as it's only checked once per application life cycle.
Reviewers: bgupta
Differential Revision: https://phabricator.kde.org/D3405