[Dialog] Use KWindowSystem::isPlatformX11()

Rather than doing a string comparison and doing it every time

Differential Revision: https://phabricator.kde.org/D9105
This commit is contained in:
Kai Uwe Broulik 2017-12-02 12:54:48 +01:00
parent f8047e86b2
commit cfcf8a61d5

View File

@ -565,7 +565,7 @@ void DialogPrivate::updateInputShape()
return;
}
if (QGuiApplication::platformName() == QStringLiteral("xcb")) {
if (KWindowSystem::isPlatformX11()) {
xcb_connection_t *c = QX11Info::connection();
static bool s_shapeExtensionChecked = false;
static bool s_shapeAvailable = false;