[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:
parent
f8047e86b2
commit
cfcf8a61d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user