mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Use platformName() to check for X11 platform
This commit is contained in:
parent
2c0f96c527
commit
a1cf84572d
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user