wayland: smoke test — verify scene_output creation in new_output handler

Add check 4h-b: grep for "scene output created" to confirm that
handle_backend_new_output found a valid wl_state.scene when it fired
(the Phase 18 ordering fix).  Without the fix the scene was NULL and
scene_output was never created, leaving the nested window invisible.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-03-28 21:50:23 +01:00
parent 96b4531ec0
commit 8c211e1a33
1 changed files with 8 additions and 2 deletions

View File

@ -114,7 +114,10 @@
# WMAKER_WAYLAND_NESTED=1 (uses wlr_wl_backend + wlr_multi_backend),
# headless mode otherwise. Scene nodes added for each XDG/XWayland
# surface so client content is composited into the output frame.
# Verified by "scene graph created" + "headless compositor mode" logs.
# Phase 18 fix: scene and output_layout created before wlr_backend_start
# so handle_backend_new_output finds a valid scene when it fires.
# Verified by "scene graph created" + "scene output created" +
# "headless compositor mode" logs.
# 39. (Phase 17) XWayland started: wlr_xwayland_create() is called in
# wl_display_open(); compositor logs "XWayland started DISPLAY=:<n>"
# so X11 clients (GNUstep apps) can connect. DISPLAY env var is set.
@ -287,7 +290,10 @@ grep -q 'scene graph created' /tmp/wl-smoke-stderr \
# Verify headless compositor mode (WMAKER_WAYLAND_NESTED not set in test)
grep -q 'headless compositor mode' /tmp/wl-smoke-stderr \
|| die "compositor did not log headless compositor mode"
echo " scene check: scene graph created (headless compositor mode)"
# Verify scene_output was created in handle_backend_new_output (ordering fix)
grep -q 'scene output created' /tmp/wl-smoke-stderr \
|| die "compositor did not log scene output creation (scene was NULL in new_output handler)"
echo " scene check: scene graph created + scene_output wired (headless compositor mode)"
# -- 5. Core Wayland globals must be advertised ---------------------------
#