diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index 6232cdbbe..8405146d6 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -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 diff --git a/src/lib/data/html/broken-page.png b/src/lib/data/html/broken-page.png index fa055b4de..4728395ce 100644 Binary files a/src/lib/data/html/broken-page.png and b/src/lib/data/html/broken-page.png differ diff --git a/src/lib/plugins/speeddial.cpp b/src/lib/plugins/speeddial.cpp index 6072e8b4a..3feb16e27 100644 --- a/src/lib/plugins/speeddial.cpp +++ b/src/lib/plugins/speeddial.cpp @@ -346,7 +346,6 @@ void SpeedDial::thumbnailCreated(const QPixmap &pixmap) if (pixmap.isNull()) { fileName = "qrc:/html/broken-page.png"; title = tr("Unable to load"); - loadTitle = true; } else { if (!pixmap.save(fileName, "PNG")) { diff --git a/src/lib/preferences/useragentdialog.cpp b/src/lib/preferences/useragentdialog.cpp index 00038d0fc..3c49fdba8 100644 --- a/src/lib/preferences/useragentdialog.cpp +++ b/src/lib/preferences/useragentdialog.cpp @@ -37,7 +37,13 @@ UserAgentDialog::UserAgentDialog(QWidget* parent) ui->globalComboBox->setLayoutDirection(Qt::LeftToRight); ui->table->setLayoutDirection(Qt::LeftToRight); - const QString os = QzTools::operatingSystemLong(); + QString os = QzTools::operatingSystemLong(); +#ifdef Q_OS_UNIX + if (QGuiApplication::platformName() == QL1S("xcb")) + os.prepend(QL1S("X11; ")); + else if (QGuiApplication::platformName().startsWith(QL1S("wayland"))) + os.prepend(QL1S("Wayland; ")); +#endif m_knownUserAgents << QString("Opera/9.80 (%1) Presto/2.12.388 Version/12.16").arg(os) << QString("Mozilla/5.0 (%1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36").arg(os) diff --git a/src/lib/tools/qztools.cpp b/src/lib/tools/qztools.cpp index 60aa3fddf..5b8459d76 100644 --- a/src/lib/tools/qztools.cpp +++ b/src/lib/tools/qztools.cpp @@ -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();