diff --git a/usr/bin/portprotonqt-gamescope b/usr/bin/portprotonqt-gamescope index 7582efd..be31e8f 100755 --- a/usr/bin/portprotonqt-gamescope +++ b/usr/bin/portprotonqt-gamescope @@ -22,7 +22,9 @@ set +a # Gamescope parameters : "${OUTPUT_CONNECTOR:=*,eDP-1}" -GAMESCOPE_PARAMS="--prefer-output $OUTPUT_CONNECTOR" +: "${XWAYLAND_COUNT:=2}" + +GAMESCOPE_PARAMS="--prefer-output $OUTPUT_CONNECTOR --xwayland-count $XWAYLAND_COUNT" # Check if NVK driver is in use if vulkaninfo 2>/dev/null | grep -i "driverName" | grep -q "NVK"; then