1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Use platformName() to check for X11 platform

This commit is contained in:
David Rosca 2016-06-14 11:53:20 +02:00
parent 2c0f96c527
commit a1cf84572d
2 changed files with 3 additions and 3 deletions

View File

@ -1443,7 +1443,7 @@ bool BrowserWindow::restoreState(const QByteArray &state, int version)
#ifdef QZ_WS_X11
int BrowserWindow::getCurrentVirtualDesktop() const
{
if (!QX11Info::isPlatformX11())
if (QGuiApplication::platformName() != QL1S("xcb"))
return 0;
xcb_intern_atom_cookie_t intern_atom;
@ -1481,7 +1481,7 @@ error:
void BrowserWindow::moveToVirtualDesktop(int desktopId)
{
if (!QX11Info::isPlatformX11())
if (QGuiApplication::platformName() != QL1S("xcb"))
return;
// Don't move when window is already visible or it is first app window

View File

@ -811,7 +811,7 @@ bool QzTools::startExternalProcess(const QString &executable, const QString &arg
void QzTools::setWmClass(const QString &name, const QWidget* widget)
{
#ifdef QZ_WS_X11
if (!QX11Info::isPlatformX11())
if (QGuiApplication::platformName() != QL1S("xcb"))
return;
const QByteArray &nameData = name.toUtf8();