From bc10fd0abab8aa9d8180747b8aa838b0277c5e81 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 12 Jan 2021 20:41:20 -0600 Subject: [PATCH] Disable the system keyboard capture option on Wayland --- app/gui/SettingsView.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index a011f08b..d93cdb38 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -841,10 +841,12 @@ Flickable { id: captureSysKeysCheck hoverEnabled: true width: parent.width - text: qsTr("Capture system keyboard shortcuts while streaming in fullscreen mode") + text: qsTr("Capture system keyboard shortcuts ") + + (!SystemProperties.isRunningWayland ? qsTr("while streaming in fullscreen mode") : + qsTr("(unsupported on Wayland)")) font.pointSize: 12 - enabled: SystemProperties.hasWindowManager - checked: StreamingPreferences.captureSysKeys && SystemProperties.hasWindowManager + enabled: SystemProperties.hasWindowManager && !SystemProperties.isRunningWayland + checked: (StreamingPreferences.captureSysKeys || !SystemProperties.hasWindowManager) && !SystemProperties.isRunningWayland onCheckedChanged: { StreamingPreferences.captureSysKeys = checked }