Revert "Disable the system keyboard capture option on Wayland"

SDL now supports keyboard grab with https://hg.libsdl.org/SDL/rev/b0e13627c656

This reverts commit bc10fd0abab8aa9d8180747b8aa838b0277c5e81.
This commit is contained in:
Cameron Gutman 2021-01-20 21:43:16 -06:00
parent 3959f447d4
commit f6de2e4dd3

View File

@ -851,12 +851,10 @@ Flickable {
id: captureSysKeysCheck
hoverEnabled: true
width: parent.width
text: qsTr("Capture system keyboard shortcuts ") +
(!SystemProperties.isRunningWayland ? qsTr("while streaming in fullscreen") :
qsTr("(unsupported on Wayland)"))
text: qsTr("Capture system keyboard shortcuts while streaming in fullscreen")
font.pointSize: 12
enabled: SystemProperties.hasWindowManager && !SystemProperties.isRunningWayland
checked: (StreamingPreferences.captureSysKeys || !SystemProperties.hasWindowManager) && !SystemProperties.isRunningWayland
enabled: SystemProperties.hasWindowManager
checked: StreamingPreferences.captureSysKeys && SystemProperties.hasWindowManager
onCheckedChanged: {
StreamingPreferences.captureSysKeys = checked
}