mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Disable the system keyboard capture option on Wayland
This commit is contained in:
@@ -841,10 +841,12 @@ Flickable {
|
|||||||
id: captureSysKeysCheck
|
id: captureSysKeysCheck
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
width: parent.width
|
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
|
font.pointSize: 12
|
||||||
enabled: SystemProperties.hasWindowManager
|
enabled: SystemProperties.hasWindowManager && !SystemProperties.isRunningWayland
|
||||||
checked: StreamingPreferences.captureSysKeys && SystemProperties.hasWindowManager
|
checked: (StreamingPreferences.captureSysKeys || !SystemProperties.hasWindowManager) && !SystemProperties.isRunningWayland
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
StreamingPreferences.captureSysKeys = checked
|
StreamingPreferences.captureSysKeys = checked
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user