Files
orca/config/scripts/focus-nested-wayland-terminal.sh
Neil 1e301ab1df test: cover native Wayland Hangul in isolated CI (#19174)
* test: exercise native Wayland Hangul in isolated CI session

* test: wait for nested compositor socket before selecting IBus

* test: align Wayland IBus discovery with GNOME environment filtering

* test: assert Wayland launch and register native Hangul evidence
2026-09-06 19:02:54 -07:00

12 lines
627 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
[[ "${GITHUB_ACTIONS:-}" == true ]]
# The isolated X server owns exactly one nested compositor window.
mapfile -t windows < <(xwininfo -root -tree | awk '$2 == "\"gnome-shell\":" {print $1}')
[[ ${#windows[@]} -eq 1 ]]
xdotool windowmap --sync "${windows[0]}"
xdotool windowfocus --sync "${windows[0]}"
read -r width height < <(xwininfo -id "${windows[0]}" | awk '$1 == "Width:" {w=$2} $1 == "Height:" {print w,$2}')
# The native spec opens a single terminal; a seat click activates its Wayland client.
xdotool mousemove --window "${windows[0]}" "$((width / 2))" "$((height / 2))" click 1