diff --git a/projects/ROCKNIX/packages/apps/portmaster/scripts/portmaster_sway_fullscreen.sh b/projects/ROCKNIX/packages/apps/portmaster/scripts/portmaster_sway_fullscreen.sh index 3429eb582e..e1d6e60b42 100755 --- a/projects/ROCKNIX/packages/apps/portmaster/scripts/portmaster_sway_fullscreen.sh +++ b/projects/ROCKNIX/packages/apps/portmaster/scripts/portmaster_sway_fullscreen.sh @@ -7,14 +7,15 @@ if echo "${UI_SERVICE}" | grep -q "sway"; then # Call the function to fullscreen the window for app_id asynchronously sway_fullscreen "${1}" & - # Explicitly map all input devices to the active game seat to prevent wayland focus revocation, and unify virtual input nodes. - swaymsg 'seat seat1 attach "*"' - swaymsg 'seat * keyboard_grouping smart' - + # Create a virtual touch keyboard device if there are two displays if [[ "${DEVICE_HAS_DUAL_SCREEN}" == "true" ]]; then TSKEY=$(get_setting "rocknix.touchscreen-keyboard.enabled") if [[ "${TSKEY}" == "1" ]]; then swaymsg 'output DSI-1 power on, seat seat1 fallback no' fi fi + + # Explicitly map all input devices to the active game seat to prevent wayland focus revocation. + swaymsg 'seat seat1 attach "*"' + swaymsg 'seat * keyboard_grouping none' fi