Autodetect a Wayland environment and configure SDL correctly. Fixes #211
This commit is contained in:
parent
082e330f9d
commit
9c5d847dae
4 changed files with 26 additions and 8 deletions
|
|
@ -1,11 +1,14 @@
|
|||
#include "systemproperties.h"
|
||||
|
||||
#include <QGuiApplication>
|
||||
|
||||
#include "streaming/session.h"
|
||||
#include "streaming/streamutils.h"
|
||||
|
||||
SystemProperties::SystemProperties()
|
||||
{
|
||||
isRunningWayland = qgetenv("XDG_SESSION_TYPE") == "wayland";
|
||||
isRunningXWayland = qgetenv("XDG_SESSION_TYPE") == "wayland" && QGuiApplication::platformName() == "xcb";
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
isWow64 = QSysInfo::currentCpuArchitecture() != QSysInfo::buildCpuArchitecture();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue