Display a warning when running under Wayland
This commit is contained in:
parent
c0e697eb58
commit
5f5f835b2e
3 changed files with 23 additions and 1 deletions
|
|
@ -67,6 +67,11 @@ bool StreamingPreferences::hasAnyHardwareAcceleration()
|
|||
1920, 1080, 60);
|
||||
}
|
||||
|
||||
bool StreamingPreferences::isRunningWayland()
|
||||
{
|
||||
return qgetenv("XDG_SESSION_TYPE") == QByteArray("wayland");
|
||||
}
|
||||
|
||||
int StreamingPreferences::getMaximumStreamingFrameRate()
|
||||
{
|
||||
// Never let the maximum drop below 60 FPS
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ public:
|
|||
|
||||
Q_INVOKABLE static bool hasAnyHardwareAcceleration();
|
||||
|
||||
Q_INVOKABLE static bool isRunningWayland();
|
||||
|
||||
Q_INVOKABLE static int getMaximumStreamingFrameRate();
|
||||
|
||||
Q_INVOKABLE QRect getDisplayResolution(int displayIndex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue