Fork history
Unicode hard-line sources and retained output captures
Native Unicode Text now recognizes whole CRLF and the other mandatory Unicode separators in source scanning/counting. The previous LF-only scan passed a CR into the shaped-paragraph API, which rejected the line and made its caret unavailable. The source fix preserves bytes/scalars, supports edits which leave a lone CR and keeps native line tables, rendering and whole-terminator visual motion coherent. Wrapped line-table edits restart at the current hard paragraph, including when an old line start becomes the interior of a newly formed CRLF.
Geometry invalidation no longer adds the NODELTA sentinel to cached source
positions. Font changes preserve explicitly requested dimensions, including
unchanged values, and reflow native line state before cursor/input-method queries.
Immutable line captures can be retained independently. Separate shaping-work counters expose real paragraph and HarfBuzz work across native edits. The new native-versus-fresh oracle compares geometry and rendered pixels, including shared sources, bidi changes and capture lifetime. This does not introduce a glyph-suffix shortcut inside an edited paragraph or establish full editor/input acceptance. Existing native widget/public records retain ABI8; new accounting/layout-reference fields belong only to opaque internal objects.
Immutable incremental Unicode source indexes
Epoch 8 adds retained immutable source maps and fail-atomic replacement deltas. Native TextField reuses an unchanged map; shared Text sources retain unaffected paragraph bodies after accepted edits. Construction-work counters expose actual analysis and sharing. Private TextField layout changes require all native consumers to rebuild together. This does not claim incremental shaping.
TextField callback paths also release original insertion scratch on refusal or post-verification length rejection. Whole-value verification uses native wide characters and scalar lengths, retains the proposal during callbacks, installs approved replacement bytes, and discards captures created for a rejected proposal. Native regressions cover these ownership and lifecycle boundaries.
Semantic coordinate origins and local composition
Component WINDOW coordinates now cross semantic ancestors to their actual native shell. PARENT remains relative to the immediate accessible parent. Out-of-range relative coordinates and targets retired during an origin-provider query are rejected. The ABI remains unchanged. A native private-bus regression covers two shells, nested semantic children, shell movement, unsupported origins, integer bounds and reentrant removal; the prior library fails its semantic WINDOW case.
A separate local Compose/dead-key fixture uses real XIM/XIC and XTest events under both input-sharing policies. Native AArch64 qualification passes exact UTF-8, scalar carets, callback counts, focus isolation and grapheme motion/deletion with 76 observations and 80 injected keys. The existing implementation passes without an input-path patch. This is a frozen local Compose table, not acceptance of a system table corpus, external IM engines or physical keyboard layouts.
The original Motif manuals and release notes describe the inherited toolkit.
The root CHANGES file records earlier fork work, including DPI-aware default
sizes for unlabeled toggle indicators, correct drag hotspot snap-back, explicit
X library linkage for tools and demos, and compiler prototype corrections.
Maintenance foundation
The following changes precede the 2.4 development cohort:
| Source commit | Correction |
|---|---|
5b2ef86 | Generate Xm string definitions once under parallel make. |
8a03ed6 | Attach generated WML header dependencies to the object that consumes them. |
1f52842 | Declare terminating window-manager handlers with the Xt noreturn contract. |
791240f | Enable Xft only after successful dependency probes. |
2b63cf1 | Correct selection timestamp item counts and release DataField encoding-probe storage. |
Selection lengths are protocol item counts: a format-32 timestamp is one
item, rather than sizeof(Time) items. This matters on platforms where native
long and the X protocol element size differ.
Development 2.4 cohort
The next cohort introduces bounds-checked XIM preedit replacement, ICU Unicode coordinate maps, coherent ICU/HarfBuzz text captures, native accessibility providers and an explicit native ABI epoch. The status page lists the validation limits. A source commit or a successful standalone fixture does not establish complete widget or input-method acceptance.
Widget and resource-compiler correctness
The focused corrections in d73af27, fe44815 and a285086 address
SpinBox/SimpleSpinBox behavior, List quick navigation, existing DPI defaults
and WML/UIL database handling. The repository's WIDGET_REVIEW.md retains the
full source review and API caveats; this page summarizes its scope.
- SpinBox uses exact integer/fixed-point formatting and parsing, bounded signed arithmetic and defined constraint offsets. It checks large increments, exceptional numeric input and deletion positions, preserves selected items during string insertion, clears emptied controls and cancels repeat timers when their widgets are destroyed.
- List quick navigation checks multibyte conversion results and uses independent conversion state, avoiding uninitialized input from malformed or truncated commits while preserving valid multibyte navigation.
- DPI defaults require finite, positive, completely parsed values and saturate dimensions before conversion. Default SpinBox arrows follow the existing Xft.dpi / 75 convention; explicitly supplied arrow and indicator sizes remain authoritative. This adds neither live per-monitor scaling nor automatic application-pixmap scaling.
- WML emits deterministic zero padding instead of reading beyond string storage, bounds debug-table iteration, accepts long output paths safely and reports missing output arguments and write/close failures. UIL copies owned database paths correctly, guards short suffixes and does not free environment storage. Existing WMD framing and length fields remain unchanged; the architecture-dependent file format is not redesigned.
The widget regression runner covers numeric limits, decimal/exponent input and
an independent arithmetic corpus, locale radix handling, indexed positions,
boundary callbacks, timer destruction, string-table mutations, List navigation
and DPI defaults. tests/automated/check-wmd.py covers generation, long/short
paths, error handling and UIL round trips. The List fixture interposes the XIM
lookup boundary; it does not qualify a real input-method service.
Focused GCC and ASan/UBSan checks passed in a separately built ABI 4 cohort. Those corrections do not themselves change public resource types, signatures or instance layouts. The combined published ABI 5 cohort subsequently passed the installed native feature, widget, WMD/UIL and legacy GUI suites. Those results qualify that exact cohort, not subsequent epoch6 source changes. Full sanitizer coverage requires instrumenting both the toolkit library and its consumers; consumer-only instrumentation has narrower scope.
Bounded text contexts and numeric accessibility
Native text widgets now reuse bounded whole-grapheme font resolution and HarfBuzz shaping leases. Captures retain independent leases across eviction and context destruction, with explicit configuration-change notification. The large mixed-script fixture exposes remaining single-line latency rather than hiding it. See the text contract and measurements.
Xft Text, TextField and DataField column geometry now follows the documented em-space, numeral-zero, maximum-width fallback order. The old maximum-glyph metric could make a seven-column field request 194 pixels instead of 110. Actual allocated/preferred geometry tests cover both proportional/monospace fonts and two sizes. The shared typed helper also removes an unsafe integer-pointer cast.
ScrollBars now expose native numeric Value, actions, focus/orientation and change events through accessibility. Continuous custom providers have their own value setter contract; native integral controls validate range/step semantics. See accessibility. New public provider/info fields and native text records require deliberate ABI epoch6 rebuilding.
String-generator metadata
The makestrs generator now parses paired dollar-delimited source metadata
with explicit bounds, trims trailing whitespace without discarding a valid last
character, ignores empty metadata, and releases its owned metadata after output.
The previous parser could index before an empty delimiter pair and leaked the
copied comment. Seven focused cases cover empty, single-character, unspaced,
spaced, whitespace-only, later-valid and unpaired input under AddressSanitizer
and UndefinedBehaviorSanitizer. This focused generator result does not qualify
the full toolkit sanitizer build.
WML also releases its default resource-literal string before replacing it with an explicit literal. The full instrumented generator build exposed this ownership leak; the corrected generation and installation complete without disabling leak checks.
Interrupted clipboard transfers
The independent Unicode/INCR peer now flushes before inspecting Xlib's event queue; flushing may otherwise consume a socket event into that queue before a socket wait. Separately, Xt's final-segment cleanup retained a freed selection pointer which its timeout could free again. The dependency patch corrects that ownership directly. A peer-disconnect regression waits through the actual selection timeout, verifies that the native owner survives, and requires a new exact-byte transfer from the same owner for both Text widgets. The pinned dependency build records the selected source and patch.
Primary-window modality across window managers
Primary-application-modal dialogs no longer depend on detecting the Motif window manager. The toolkit's Xt grab cascade blocks the dialog's ancestor windows while permitting independent branches. Nested or parallel primary dialogs retain each other's blocked ancestors; an enclosing full-application modal remains authoritative. A newly realized window or unrelated modal popup cannot escape an existing full-modal scope simply by appending another grab.
Virtual grab insertion preserves blocked windows for later admission. Removal
compacts retained records explicitly, restores the surviving Xt suffix once,
releases associated cousin callbacks and refreshes permitted branches. Raw
widget grabs use their containing vendor shell for primary ancestry checks.
These changes do not add a window-manager dependency or change the public
XmNdialogStyle values.
The unattended primary-modality fixture exercises actual XTEST pointer and
keyboard input on an isolated X server, including independent windows, nested
and parallel dialogs, raw grabs, windows and modal popups created during a
modal, popdown and recursive destruction. The final fixture observes XmDisplay
retirement instead of reading it after the last VendorShell is destroyed.
Native installed-prefix and focused ASan/UBSan results are recorded in
current status; broader desktop and final x86_64 gates remain open.
Exact text changes and native menu accessibility
The optional AT-SPI transport now emits scalar-indexed TextChanged deletion and insertion payloads from validated current live text, with changes ordered as one replacement batch. Caret-only/unchanged observations no longer fabricate content changes. Bounded reads, provider removal/reentrancy, invalid observations and password-role suppression preserve explicit observation limits. Message construction checks libdbus failures transactionally; a failed batch invalidates its baseline.
Native menu bars, panes, cascade widgets/gadgets and menu entries expose standard roles, native actions, expansion ownership and posted MenuShell focus. Applications can compose a single input-row tab group for fields and adjacent buttons using existing navigation resources; the compound traversal fixture checks that contract. No public struct layout or SONAME changes; the added role constants retain ABI6.
The strict ARM64 native build passes all 15 default features, including exact Unicode text events, 20 targeted libdbus failure cases, menu semantics and compound traversal. Clean builds take 116.040/120.184 seconds with two jobs, comparable to the earlier 115.427-second profile. This is native protocol/control qualification; sanitizer and actual screen-reader checks for these additions remain pending.
Toolkit keyboard delivery to assistive listeners
Registered widgets now forward native key press/release events before their translations run. Synchronous non-global AT-SPI listeners can query accessible state and consume an event. Bounded waits fail open; nested dispatch, late replies, disconnect and bridge destruction preserve native editing. The registry-input wire encoding follows the actual pinned parser; its hardware/modifier types differ from registry listener output despite the advertised signature.
The full16-fixture native ARM64 suite passes, including strict listener type and ordering checks and consumption of the same action between two accepted runs. Actual screen-reader input echo, IME and sanitizer checks of this new path remain separate qualification gates. See accessibility.
Native list identities and selection (ABI7)
List items now own non-reused identities, and native semantic projection exposes item names, selection, cursor focus and exact-target actions. Selection methods work for native lists and typed custom providers. Stale rows reject after delete/replacement, repeated labels remain distinct, and optional projection allocation failures close semantic actions until recovery. Native/private and public provider layouts advance the suite to ABI7. The fresh installed-prefix build and 20 native ARM64 fixtures pass, including allocation-failure recovery, 12 generic-provider reentrancy cases and eight native callback-destruction cases. Provider snapshots validate the hierarchy and semantic epoch at every callback boundary; native selection publication safely handles callback destruction. Nine focused ASan/UBSan fixtures also pass, including List protocol/lifetime and provider reentrancy; system/Xt libraries and leak checking are outside scope. Actual-application adoption remains a separate gate. Repeated real IBus/m17n service validation has an intermittent Hindi preedit failure under investigation. Previous ABI6 results remain scoped to that cohort.
Accessibility modal input admission
Accessibility actions, scalar/Selection writes and focus requests now honor the same live Xt grab admission and Motif modal cascade as native input. Native list items and semantic providers cannot activate a primary dialog's blocked parent; independent window branches remain usable. Mutable semantic providers require a live native widget ancestor instead of an implicit first-window owner. Provider reads that reenter the toolkit are followed by fresh admission before mutation. Xt's private input headers are isolated from Motif's distinct private callback types through a narrow internal C boundary; no private layouts are copied.
The new regression is part of the 21-fixture installed native suite. Its 272 checks pass, including native focus callback destruction and modal changes during provider queries/selection snapshots. The earlier library fails 87 checks, while the independent native input modality regression retains all 397 assertions. The complete normal native ARM64 suite passes. These results do not establish complete assistive-technology, input-method or cross-platform coverage.
Ten focused native ARM64 fixtures also pass with the toolkit and consumers instrumented by ASan/UBSan, including the new modal-admission regression. Xt/system dependencies are uninstrumented, leak checking is disabled, and allocator-fault interposition remains exclusive to the normal native suite.
Complete semantic button callback data
Accessibility activation supplies the complete native callback structure for PushButton, PushButtonGadget and ArrowButton, including click count 1 and a NULL native event. Previously, callbacks reading beyond the common reason/event prefix could read outside the provided stack storage. The same instrumented fixture reproduces that read against the previous library and passes against the rebuilt library, including callback-driven destruction and stale IDs. This focused ASan/UBSan result does not establish unrelated application or input-method behavior; process-global leak acceptance is not claimed.
Empty compound-string segments
Compound-string construction, conversion, concatenation and component traversal skip zero-byte payload copies, preserving valid empty components without passing null text storage to byte primitives or pointer arithmetic. Comparisons and separator-table matching also skip zero-byte comparisons after their existing type, tag, direction and length checks. Metadata, ownership, counts and copied terminators remain intact.
Public regressions cover empty and nonempty neighbors, tagged segments, direction metadata, separators, legacy left-to-right construction, typed NULL/zero-length construction, copy/traversal/unparse and counts-only/allocated separator tables. Nonzero-length NULL input remains refused. Strict runtime qualification is recorded separately from these source changes.
Native accessible viewport visibility
Native accessible widgets and List items now distinguish a mapped window from content actually intersecting its ancestor viewports. The implementation carries one common clipped rectangle through the native hierarchy, preserves full Component extents and handles independently mapped popup shells. Ancestor geometry and mapping events refresh native descendant states for the optional accessibility transport. Generic clipping and private-bus event fixtures exercise the contract; their results qualify the exact tested build rather than every consumer cohort.
The same native-query qualification identified an owned compound-string getter result retained by accessibility name conversion. Native label and Disclosure header queries now release that copy after unparsing; widget-owned labels remain valid and are freed through their normal lifecycle.
Label graphics-context ownership
Label appearance replacement now releases normal, insensitive and shadow graphics context references as one set. The inherited replacement path omitted the shadow reference even though widget destruction released it, retaining old GCs after font/color changes. Changes to topShadowColor also rebuild the insensitive text shadow rather than retaining its former color.
The focused label-gc fixture queries the actual GC foreground, changes the shadow color alone, and performs 32 rounds of independent render-table/color replacement. Native ARM64 normal and strict ASan/UBSan toolkit/consumer qualification pass, including leak detection. The previous library fails the precise shadow-color assertion. This verifies Label GC ownership, not all font or display lifetimes.
Independent display color ownership
ColorObj discovery and destruction now use a context on the owning display. Closing the first connection no longer removes another connection's lookup or prevents its ColorObj from being destroyed. RowColumn color setup uses the current display's palette and screen rather than process-wide cached values. Screen-taking icon-policy queries likewise use their own display.
Queries without a display argument use the first still-live ColorObj in creation order. Removing that owner promotes the next live object; removing the final owner returns the documented unavailable result. Palette and screen bounds are checked, and the no-default query path releases its process lock correctly. The focused color-display-lifetime fixture covers both close orders, surviving lookup, distinct icon policies, default promotion, unavailable final state and exactly-once destruction. Native ARM64 passes 61 assertions in both normal and strict ASan/UBSan runs with leak detection. The previous library fails the screen-specific icon-policy assertion. The fixture observes actual ColorObj creation through a transparent test-only XtAppCreateShell forwarder; it does not create replacement objects or require a production test interface.
Render-table and font ownership
Render-table bodies own their rendition handles once, independently of how many public table handles share the body. Copy-on-write creates independent handles; replacement, filtering, merging and final release balance those references. Missing-tag copies remain compact, including empty results. Xft references and font patterns belong to rendition bodies; borrowed drawing scratch values and caller-owned fonts retain their own lifetime. Font updates reload the affected resources, and switching between core and Xft fonts clears obsolete state. The process-wide rendition cache has been removed: it retained resources indefinitely and could reuse entries across independent displays.
The focused installed-API fixture passes 79 assertions with two independent displays in normal and strict ASan/UBSan builds, including leak detection. It checks copies, merge modes, updates, caller-owned fonts and rendering after the first connection closes. Terminal fixture cleanup uses Fontconfig's documented FcFini only after all fonts, widgets, displays and the Xt context are retired. An independent Fontconfig control still reports a deliberately unreleased client pattern after FcFini; cleanup does not replace checking owned resources.
Per-display default-font cache
Default fallback tables are inserted for every display, including when capacity already exists. Cache growth clears only the newly allocated tail. XmDisplay teardown removes its cache entry and releases the cache-owned table reference; widgets retain their own copies and the extension getter keeps its borrowed return contract. Empty-cache retirement resets storage for later connections.
The installed extension-API fixture passes 327 assertions with ten concurrent displays and twelve total connections in normal and strict ASan/UBSan runs, including leak detection. It checks repeated lookup identity, growth beyond eight slots, interleaved closing, survivor native drawing/readback and reopening both with live peers and after the cache empties. The previous library fails the repeated-lookup assertion. These focused results do not establish all widget, input-method, application or display-server behavior.
CK Core Motif