From 35165139a8983de680f5853ca26248d6c84540c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 9 Oct 2026 08:22:31 -0400 Subject: [PATCH] ElyShow: the fullscreen check also requires the menu bar and Dock hidden (R2.5) --- tests/scripts/show-fullscreen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/scripts/show-fullscreen.sh b/tests/scripts/show-fullscreen.sh index dceae10..cf1d0ed 100755 --- a/tests/scripts/show-fullscreen.sh +++ b/tests/scripts/show-fullscreen.sh @@ -50,5 +50,8 @@ for _ in $(seq 20); do sleep 1 done windows | grep -qx "0 0 $screen" || fail "no show window covers the screen ($screen): $(windows | tr '\n' ';')" +# Menu bar and Dock hide; neither draws over the slide. +bars=$(swift -e 'import CoreGraphics; let l = CGWindowListCopyWindowInfo(.optionOnScreenOnly, kCGNullWindowID) as! [[String: Any]]; for w in l where ["Menubar", "Dock"].contains(w["kCGWindowName"] as? String ?? "") || (w["kCGWindowOwnerName"] as? String) == "Dock" && (w["kCGWindowLayer"] as? Int ?? 0) > 0 { print(w["kCGWindowName"] as? String ?? "Dock") }') +[ -z "$bars" ] || fail "still on screen over the show: $bars" osascript -e 'tell application "System Events" to key code 53' >/dev/null echo "ok: the show covers the whole screen"