CK Core Motif
CK Core Motif

Build and install

Hosted documentation workflow

The GitHub Pages workflow is intentionally scoped to documentation inputs. It runs automatically on master pushes and pull requests that change docs/, ckdocs.yml, the pinned documentation builder, its provenance inputs, or the workflow itself. Ordinary library and client commits do not start or cancel a documentation run. Use the workflow's Run workflow action (workflow_dispatch) when a documentation rebuild is needed without changing one of those files.

The detailed regression and maintenance notes are marked as built-but-unlisted reference pages. They remain available from the generated site index and search, while strict builds verify every tracked Markdown page without turning the main navigation into hundreds of top-level tabs.

Use an isolated source checkout, build directory and installation prefix. Do not overlay development headers or libraries onto an older installation. GNU make, a C compiler, Autoconf, Automake, Libtool, Flex/Bison and the X11/Xt development libraries are needed for a source build. Optional image features require their corresponding development packages; inspect configure results instead of assuming they were enabled. On Linux and other Wayland hosts, --enable-wayland (auto by default) builds the optional XWayland-free native Wayland runtime backend into libXm.

Modern C and macOS

The toolkit libraries, WML generators, UIL compiler, window manager and modern widget gallery support C23 builds with current Clang. Select the language mode when configuring, for example CC="clang -std=c23". The string generator uses fully typed callbacks and produces typed function-ABI declarations. WML/UIL and window-manager definitions and callback tables use explicit prototypes. Autoconf requests the host's system API declarations independently of the C language mode. Static atomic initialization does not use the removed ATOMIC_VAR_INIT macro.

On macOS, this builds native Mach-O libraries and programs for X11/Xt through XQuartz. Install Xcode Command Line Tools (or Xcode), XQuartz, and the development tools/dependencies for the selected features. Homebrew supplies Autoconf, Automake, GNU Libtool (glibtoolize), GNU Make, pkg-config, ICU, HarfBuzz and librsvg (brew install librsvg). GNU Make 4.3 or newer is required by the grouped string-generator targets; invoke gmake rather than Apple's Make 3.81. autoreconf -fi recognizes Homebrew's GNU Libtool without changing autogen.sh to call Apple's unrelated libtool program.

The Xft, Fontconfig and HarfBuzz libraries must use the same FreeType dylib. Passing an Xft-owned face from XQuartz's FreeType into Homebrew HarfBuzz's separate FreeType can crash when shaping historical fonts. Configure now checks this dependency graph on macOS and prioritizes the actual package library directories ahead of the broad XQuartz search directory. This ordering is also retained in libtool and static-link metadata. Xft must also use the selected XQuartz Xlib.

With absolute source and work paths, a fresh build directory and a mounted scratch volume selected according to the host's workspace policy, build a matching Xft when using Homebrew HarfBuzz with XQuartz:

export TMPDIR="$work/tmp"
export XDG_CACHE_HOME="$work/cache"
export PYTHONPYCACHEPREFIX="$work/pycache"
mkdir -p "$TMPDIR" "$XDG_CACHE_HOME" "$PYTHONPYCACHEPREFIX" "$work/build"
brew_prefix="$(brew --prefix)"
export PATH="$brew_prefix/bin:/opt/X11/bin:$PATH"
ft_prefix="$(brew --prefix freetype)"
fc_prefix="$(brew --prefix fontconfig)"
font_work="$work/font-stack"
mkdir -p "$font_work/src" "$font_work/build"
curl --fail --location \
  https://xorg.freedesktop.org/archive/individual/lib/libXft-2.3.9.tar.xz \
  --output "$font_work/libXft-2.3.9.tar.xz"
printf '%s  %s\n' \
  60a25b78945ed6932635b3bb1899a517d31df7456e69867ffba27f89ff3976f5 \
  "$font_work/libXft-2.3.9.tar.xz" | shasum -a 256 -c -
tar -xJf "$font_work/libXft-2.3.9.tar.xz" -C "$font_work/src"
export PKG_CONFIG_PATH="$fc_prefix/lib/pkgconfig:$ft_prefix/lib/pkgconfig:/opt/X11/lib/pkgconfig:$brew_prefix/lib/pkgconfig"
(cd "$font_work/build" && "$font_work/src/libXft-2.3.9/configure" \
  --prefix="$font_work/install" --disable-static \
  FREETYPE_CFLAGS="-I$ft_prefix/include/freetype2" \
  FREETYPE_LIBS="-L$ft_prefix/lib -lfreetype" \
  FONTCONFIG_CFLAGS="-I$fc_prefix/include" \
  FONTCONFIG_LIBS="-L$fc_prefix/lib -lfontconfig" \
  XRENDER_CFLAGS=-I/opt/X11/include \
  XRENDER_LIBS="-L/opt/X11/lib -lXrender -lX11")
gmake -C "$font_work/build" -j3
gmake -C "$font_work/build" install
export PKG_CONFIG_PATH="$font_work/install/lib/pkgconfig:$fc_prefix/lib/pkgconfig:$ft_prefix/lib/pkgconfig:/opt/X11/lib/pkgconfig:$(brew --prefix harfbuzz)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$brew_prefix/lib/pkgconfig"
(cd "$source" && autoreconf -fi)
(cd "$work/build" && "$source/configure" CC="clang -std=c23" \
  --prefix="$work/install" \
  --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib \
  --enable-xft --enable-unicode-text --enable-svg --disable-atspi --disable-printing \
  CPPFLAGS=-I/opt/X11/include LDFLAGS=-L/opt/X11/lib)
gmake -C "$work/build/lib" -j3
gmake -C "$work/build/tools/wml" -j3
gmake -C "$work/build/clients/uil" -j3
gmake -C "$work/build/clients/mwm" -j3
gmake -C "$work/build/demos/programs/ckmotif-gallery" -j3
python3 "$source/tests/automated/run-modern-c-portability.py" \
  --cc clang --standard c23 --build "$work/build" \
  --results "$work/c23-results"

JPEG discovery can be directed to Homebrew with --with-libjpeg-includes="$brew_prefix/include" and --with-libjpeg-lib="$brew_prefix/lib". SVG is a separate --enable-svg configuration requiring librsvg; the macOS recipe above enables it for modern gallery vector icons. Without it, SVG examples report that SVG is required and controls can fall back to legacy bitmap icons even in a modern theme. Verify pkg-config --modversion librsvg-2.0 and the configure SVG result before building. The native Mac SVG qualification records all nine built-in gallery icons, vector rerasterization, color/background matching, cache behavior and toolbar state/theme/scale tests. Keep each install prefix isolated and rebuild all consumers for its native ABI cohort. Mach-O function/data aliases are emitted in their owning object, so the same symbols and class-record addresses are available from both static archives and dylibs.

Mrm registration now declares MrmCreateProc as Widget (*)(Widget, String, ArgList, Cardinal) and MrmCleanupProc as void (*)(Widget). UIL exposes UilMessageProc and UilStatusProc with their actual diagnostic/progress parameters. Message, source, location and filename buffers are borrowed const char *; applications that modify them must make owned copies. Callback counts remain int *, as in the documented callable compiler contract. These prototype changes do not add fields to native records.

The portability runner compiles and executes all six string-generator ABIs, checks function/data aliases in a static archive and shared objects, exercises all 28 toolkit aliases, and runs native ABI, Mrm allocator/constructor/cleanup, UIL callback, WML attribute, Mwm parser dispatch/overflow, string and Unicode-map regressions. Results include commands, output and the exact loaded library fingerprint. Native compilation and these display-independent tests do not qualify an actual macOS window, clipboard, input-method session, scaling behavior or VoiceOver integration. The Linux AT-SPI and existing full-feature test services remain separate gates.

The 2026-11-01 qualification record records successful native arm64 macOS and Linux Clang C23 builds, GCC C23 consumer regressions, 619 selected source checks, library fingerprints and the exact tested code commit. Linux enabled Xft, Unicode, AT-SPI and SVG; macOS enabled Xft and Unicode.

Hardening and sanitizer builds

Two opt-in configure switches support defect hunting. Neither changes an ordinary build.

--enable-hardening adds -Wall -Wextra -Wformat=2 -Wnull-dereference, -Wno-unused-parameter (Xt and Motif callback signatures fix their parameter lists), -fstack-protector-strong, and, when the build is optimized, -D_FORTIFY_SOURCE=3. Defect-oriented warning classes whose baseline counts have been driven to zero (-Werror=format-security, -Werror=implicit-fallthrough=3, -Werror=null-dereference, -Werror=misleading-indentation, -Werror=cast-function-type with -Wno-cast-function-type-strict, -Werror=pointer-to-int-cast, -Werror=int-to-pointer-cast, -Werror=maybe-uninitialized, -Werror=uninitialized, and -Werror=address) are promoted to errors. Each flag is probed, so a compiler that lacks one skips it. The switch also stops adding -Wno-unused, so unused-but-set variables and dead code are reported. Build with at least -O1; -Wnull-dereference finds most with -O2.

--enable-sanitizers[=LIST] compiles and links with -fsanitize=LIST (default address,undefined) and -fno-omit-frame-pointer. Configure fails when the compiler cannot link a sanitized program. The flags are applied after the last feature probe, so sanitized probe programs do not change feature detection. A sanitized toolkit needs a sanitized consumer: build and run applications and test programs with the same switch and list. Set ASAN_OPTIONS=detect_leaks=0 while building, because the WML and UIL generators run during the build.

Style and signedness warning classes remain non-fatal warnings and are tracked per component and warning class. The hardening baseline and audit ledger holds the current counts and the tool (scripts/warning-baseline.py) that compares a build with them.

Development text and accessibility features

--enable-xft (enabled by default) requires Xft, Fontconfig and FreeType development files. --enable-unicode-text, --enable-atspi, --enable-svg, and --enable-xlibre-dpi all default to auto so an ordinary ./configure enables each feature automatically whenever its development packages are present (pass --enable-FEATURE to require a feature or --disable-FEATURE to turn it off explicitly):

  • --enable-unicode-text (default=auto) uses ICU (icu-uc, icu-i18n) and HarfBuzz through pkg-config when Xft is enabled. There is one ICU bidi/HarfBuzz shaping pipeline, with no GTK, Pango or Raqm dependency.
  • --enable-atspi (default=auto) builds the optional D-Bus AT-SPI2 transport when dbus-1 is available. The semantic provider API remains usable without that transport.
  • --enable-svg (default=auto) enables SVG icon and image rasterization when librsvg-2.0 >= 2.52 is available.
  • --enable-xlibre-dpi (default=auto) builds per-output XLibre and rootless XWayland RandR DPI probing when Xrandr.h and libXrandr are available (remaining opt-in per display server at runtime). The Unicode configure probe uses atomic_init rather than the removed ATOMIC_VAR_INIT macro, so current GCC and Clang drivers that select C23 mode still pass the C11 atomic capability check.

Select explicit absolute paths appropriate to the machine:

export TMPDIR="$work/tmp"
mkdir -p "$TMPDIR" "$work/build"
(cd "$source" && sh autogen.sh)
(cd "$work/build" && "$source/configure" \
  --prefix="$prefix" --enable-xft --enable-unicode-text --enable-atspi)
make -C "$work/build" -j2
make -C "$work/build" install

Here source, work and prefix are caller-selected absolute paths, and work is a fresh, project-owned scratch directory. Autotools bootstrap generates files in the source checkout, so use a disposable source copy when preserving a clean checkout matters. Select a scratch filesystem explicitly on systems with such a policy. The command sequence is a build example, not validation evidence.

Xt clipboard dependency

The complete clipboard lifetime gate requires the Xt selection-ownership corrections. Uncorrected Xt can free its atomic selection value after sending the final INCR segment and free the same pointer again if the peer disconnects before the final acknowledgement. It can also leave a selection context allocation behind when a widget is destroyed before its destroy callbacks disown the selection. Both cases are corrected in Xt's Selection.c, not with a toolkit shim or a longer timeout. patches/libXt-incr-lifetime.patch clears the released value pointer and gives Xt a lookup-only disown path. A destroyed widget's context is removed immediately when no transfer is active, or after its final transfer reference; the server owner is cleared only when it still names that widget. Every refcount retirement verifies and deletes the matching X context before freeing the record.

On Linux, scripts/build-xt-dependency.py accepts the upstream libXt 1.3.1 archive, checks SHA-256 e0a774b33324f4d4c05b199ea45050f87206586d81655f8bef4dba434d931288, applies the exact patch, and builds into a fresh explicit prefix. It performs no downloads or system installation. Pass --archive /absolute/libXt-1.3.1.tar.xz, --output /absolute/xt-build and optionally --prefix /absolute/combined-prefix. An explicit prefix must be fresh or empty. The source/build/install receipts record hashes, flags, compiler, timing and instrumentation scope. The helper performs its own containment check and rejects links and other non-regular archive entries, so it has the same extraction boundary on Python 3.10 hosts that lack TarFile.extractall(filter="data").

On 2026-10-25, the AArch64 uconsole qualification used the pinned archive SHA-256 above, patch SHA-256 218f87c254c716c8be3fb4a797849213fd224d87db33306a4edf2fd400a6e8f3, and patched Selection.c SHA-256 451cc19b94b041fe14f0bbbc689de5e76fe49a45cbbaba2679d01a09684da53f. The official helper completed a fresh shared Xt build, and a strict installed-prefix consumer run passed abi, incremental-layout and clipboard-lifetime with ASan/UBSan leak detection enabled. The same run is the evidence boundary for the dependency patch; it does not qualify Fontconfig ownership, application drag-and-drop workflows or x86_64. The retained helper receipt was xt-selection-next-r7-helper/receipt.json on the task host; its installed libXt.so.6.0.0 SHA-256 was 336b193562786d87c3b0f22343be767eae1fda5b982521fedabf6e382161b6f7, and the consumer receipt was results/xt-selection-next-r7/receipt.json.

Build Motif into the same selected prefix afterward. Set CPPFLAGS to include its include, LDFLAGS to -L and -Wl,-rpath, its lib, and PKG_CONFIG_PATH to its lib/pkgconfig before configuring. Verify runtime Xt and Xm paths as well as their SONAMEs; a corrected library installed elsewhere does not fix a process that loads system Xt. The system installation remains untouched. Toolkit/consumer sanitizer builds are separate from this normal Xt dependency profile.

Consumers

Compile and link against the selected prefix explicitly. Ensure runtime loading also uses that prefix, rather than a system libXm chosen accidentally. Rebuild subclass libraries and all consumers of P.h/I.h records. See the ABI cohort checks.

Focused fixtures

tests/Toolkit/Unicode/layout.c and line_context.c exercise the generic capture API with an X server. text_unicode.c exercises actual Text and TextField widgets. tests/Toolkit/ABI/cohort.c compares header/runtime epoch and version. Xvfb is suitable for automated geometry and readback fixtures, but it does not replace inspecting the real application window, testing an actual XIM service, or using an assistive client.

Installed native feature suite

On Linux, use the toolkit's generic runner after installing one isolated cohort:

python3 tests/automated/check-native-features.py \
  --prefix "$prefix" \
  --out "$work/native-features"

Both paths must be absolute. The output directory must be fresh and separate from the installed prefix; the runner creates its own TMPDIR there. It performs no toolkit build or package installation, and requires no external build receipt. For a custom library location use --libdir with an absolute directory inside the prefix. --cc selects the native C compiler. --only layout, for example, restricts the feature fixtures while still running the installed ABI check.

The clipping event observer needs a private runtime whose Unix socket path fits within 100 bytes. For long result paths, supply --accessibility-runtime /absolute/short/fresh/path; the runner creates it with mode0700 and refuses an existing directory. Use --sanitize for an ASan/UBSan prefix: this instruments the fixtures too and enables strict leak/error checks.

When invoked without arguments as part of a generic source-check sweep, the native-only runner exits successfully with a SKIP notice. Supplying the required prefix and results path keeps the full strict Linux fixture suite.

The full suite needs pkg-config with Xft, Fontconfig, HarfBuzz and ICU development modules, a C11 compiler, readelf, ldd, Xvfb, xvfb-run, xauth, dbus-run-session, gdbus, stdbuf, scrot, Python 3 with its D-Bus and GLib bindings (python3-dbus and python3-gi on Debian), and real AT-SPI bus/registry services. The text fixtures require DejaVu Sans and a CJK-capable fallback font. Unavailable services or missing font coverage fail their tests; an in-memory semantic substitute does not count as an AT-SPI pass.

The default suite contains 35 fixtures (36 registered, including opt-in XIM), including font-resize, accessibility-modality, accessibility-clipping/accessibility-clipping-events and the xmstring-empty-concat/xmstring-empty-components public string regressions. --only local-compose runs the local-input regression with its own authenticated Xvfb/Openbox rather than an ambient display. It requires Xvfb, Openbox, xdotool, xdpyinfo, xprop and native libXtst. Its frozen standalone Compose table and the private server's original, mapped and restored keymaps are fingerprinted. The observer accepts the same repeated --runtime-library-dir dependency directories as the runner and records them in its receipt, so an external pinned Xt is validated rather than silently replaced by system Xt. It requires actual local XIM/XIC registration, then sends XTest keys through Text/TextField under both input-sharing policies. Exact UTF-8 bytes, scalar carets, committed-value callback counts, unfocused-widget isolation and grapheme motion/deletion are checked for Compose, dead acute and a two-scalar combining commit. This source contract is separate from runtime qualification; it does not imply external-provider, physical-keyboard or Escape behavior. If a strict child exits before its final response, the observer waits for the real status and includes the child stderr tail in the failure, preserving sanitizer ownership evidence rather than converting it into an ambiguous EOF. --only accessibility-coordinates checks Component screen/window/parent coordinates on a private AT-SPI bus across two native shells, nested semantic providers, a moved shell, unavailable origins, integer boundaries and a target retired by a parent query. It saves the provider PID/executable/maps and a root PNG after the geometry checks. Its private runtime uses the -coords sibling of --accessibility-runtime, keeping it separate from the clipping-event bus. The string fixtures cover valid empty payloads, construction/copy/traversal, metadata comparisons and separator tables without changing nonempty behavior. --only accessibility-modality selects the native/semantic action, focus, value and Selection modal-admission regression (plus the mandatory ABI fixture). It runs on the runner's isolated Xvfb and requires no AT-SPI service. Select it the same way with an instrumented compiler and installed sanitizer prefix for ASan/UBSan validation; native allocation-fault interposition remains separate.

--only font-resize selects native Label/TextField/wrapped Text/PushButton checks at explicit Xft 12, 18 and 24 point sizes. The fixture inspects the actual loaded point sizes and metrics, derives narrow/wide window sizes from measured advances, and checks real X/Form geometry, width-dependent wrapping, preserved UTF-8 bytes and scalar insertion positions, retained focus through font/resize and unmap/remap, and exactly one native Space-key activation per profile. The key is an XSendEvent delivered through the widget's ordinary translations; it is not physical keyboard, IME or compositor-scale acceptance. The only resource-count bound asserted is the Form's own four child identities/count. Explicit font profiles do not establish fractional or compositor scaling.

--only font-lifetime isolates Xft rendition ownership from Text selections. It exercises public table copies and merge modes, font and non-font copy-on-write updates, native compound-string scratch rendering, caller-supplied Xft fonts, native Labels and two independent display connections, including continued rendering after closing the first connection. Each connection's application widgets and independent XmDisplay application shell are destroyed before XtCloseDisplay, which closes the connection but does not destroy widgets. The fixture tracks XmDisplay destruction through its callback: the last VendorShell normally retires it automatically, so explicit cleanup occurs only if it remains live. This avoids using or destroying an already retired widget. The second connection continues to query and render after the first connection's complete teardown. --only default-font-cache exercises the installed default-table extension API with ten concurrent display connections, interleaved teardown, surviving native Label rendering and two reopened connections. Default lookups return borrowed tables; the fixture frees only its explicit public copies. It checks cache reuse and growth beyond eight entries, while destroy callbacks guard automatic XmDisplay retirement. Default tables are owned by the native display lifecycle; their original cache references are released before the connection closes. --only label-gc checks native insensitive Label GC replacement and shadow-color dependencies. Strict sanitizer qualification of these owning-layer fixtures is separate from the broader font/resize fixture. --only color-display-lifetime exercises both independent-display close orders, screen-specific icon policy, and the first still-live default for queries that have no display argument. It checks surviving lookups and exactly-once ColorObj destruction. The fixture seeds existing palette state with native black/white pixels so an optional CDE color server is not required; this does not qualify color-server discovery or protocol behavior. It also checks invalid screen and palette extents and unavailable queries after the final owner is destroyed. The internal rendition record now carries explicit Xft-reference ownership. That header is not installed; the lifetime fixture uses installed public rendition/render-table APIs and native compound-string rendering. Public rendition and render-table handles remain opaque.

The default fixtures cover ABI/version, XIM preedit bounds, shaped glyph readback, paragraph/line and bounded font contexts, native Unicode and large text widgets, Unicode clipboard/INCR and interrupted-transfer lifetime, Disclosure and numeric accessibility. Real XIM service testing is selected explicitly with --only xim-service. Disclosure and accessibility also use external D-Bus observers. Each consumer compiles sequentially with strict C11/POSIX 2008 warnings and optimization. Compiler dependency graphs prove that actual Xm headers came from the selected prefix. The runner checks native ELF identity, library SONAME, executable dependencies and the exact ldd-resolved installed libXm; it rejects mixed header/library origins. The linker and runtime library names must resolve to the same installed file.

receipt.json retains host/compiler/tool identities, exact fixture and installed header/library hashes, executable hashes, commands, timestamps, durations and logs. Installed inputs and fixture sources are checked again after the suite. The first recorded suite using this runner passed on native ARM Linux; retain and compare receipts for the particular cohort being admitted. The small fixture compilations are separate from the toolkit build and have a different duration. A passed suite identifies the tested bytes; it does not prove which source built the installation, complete Unicode/AT-SPI coverage, an actual XIM service journey, or the appearance of a separate application's window.

Primary-window modality fixture

--only primary-modality selects the generic window-modality regression (the ABI check still runs). It additionally requires the xtst development module and the XTEST server extension. The runner starts its own Xvfb display; no window manager is required. The consumer refuses to run without its explicit --isolated-display argument because it raises test windows and moves keyboard and pointer focus. Do not run it on an interactive user display.

The fixture uses actual XTEST input rather than invoking button callbacks or calling the widget's actions directly. It checks blocked parents and usable independent windows, nested and parallel primary dialogs, enclosing full modals, raw widget grabs, newly realized windows and deferred modal popups. Repeated popdown and recursive destruction must restore input and the virtual grab count without X errors or Xt warnings. It tracks XmDisplay retirement when destroying the last VendorShell. This establishes the tested client input contract, not a particular desktop's focus-stealing or placement policy.

The font-lifetime fixture calls FcFini only at terminal process teardown, after all test-owned fonts, widgets, displays and the Xt application context have been released. This finalizes Fontconfig's process-global configuration; toolkit code does not finalize the application-wide library. Leak detection stays enabled without suppressions. Independent controls distinguish this configuration from unreleased client patterns. The default-font-cache fixture uses ten simultaneous connections to exercise cache growth, per-display retirement and survivor drawing.

Example applications

--enable-demos builds the example applications (the default). --disable-demos omits them while retaining ckmotif-gallery and its component examples. After changing this option, run make -j6 and make install. The gallery's Demo Applications page reports missing executables with their configured build and install paths and the command needed to enable demos. Examples keep their historical installation locations under PREFIX/share/Xm; the gallery itself is installed into PREFIX/bin. A gallery test distribution must include these installed demo executables and their UID files, bitmaps, locale data and help resources, rather than copying only ckmotif-gallery. Check every catalogue entry in demos/programs/ckmotif-gallery/gallery_demos.h against the installed prefix; exercise resource-dependent examples such as Periodic Table and File Viewer from their installed directories.

The default MWM build enables the standalone MWM_WSM workspace protocol. This is independent of the CDE WSM compilation mode. See workspace management for behavior and validation.

The native Mac dialog/demo qualification records the complete installed cohort and automated results. Run tests/automated/run-gallery-installed-demos.py --build-root BUILD --prefix PREFIX --out OUT on an idle task-owned build; it temporarily hides its build-tree demos and restores them afterward. On macOS, OUT must be on a mounted project temporary volume.

Animation demo speed

The animation demo uses a Speed range of 1–100 and starts at 1. The left endpoint is the slowest advancing setting; use Stop to pause and One step to advance a single frame. Playback uses a single Xt timeout, from 500 ms per frame at the left endpoint (2 fps) to 20 ms per frame at the right endpoint (50 fps), at the default -speed 20. The slider interpolates the frame rate between those endpoints. -speed N accepts integers 1–100 and scales the interval by N/20. Invalid values are rejected. Repeated Start clicks do not multiply timers; Stop and widget destruction cancel pending playback. A speed change replaces the pending timeout. Each tick schedules the next after drawing, so event-loop delays slow playback rather than producing catch-up bursts.

After changing the UIL definition, rebuild and install xmanimate.uid; recompiling only the executable does not update the interface resources. Run the native regression with an installed toolkit and the built Xmd archive:

python3 tests/automated/run-animate-speed.py --prefix PREFIX \
  --xmd-library BUILD/demos/lib/Xmd/libXmd.a --out TASK_TMP/animate-speed

The runner needs Xvfb on PATH and a C compiler. It compiles both UIL definitions, loads the actual demo, and checks that initial and restored minimum speed advance frames at measured elapsed-time intervals. It also checks maximum speed, idle CPU use, repeated Start, speed changes, delayed event handling, Stop, One step and destruction. It uses an isolated display and records source hashes, commands and results.