Browser-oriented X11/Xlib compatibility layer for WASM applications.
The browser backend intentionally exposes a small X11 display model:
- one display with one screen (
DefaultScreen == 0,ScreenCount == 1); - one 24-bit
TrueColordefault visual (visualid == 1, RGB masks0xff0000,0x00ff00, and0x0000ff,bits_per_rgb == 8); - one window depth (
24) plus pixmap formats for depth 1 bitmap pixmaps and depth 24 pixmaps stored as 32 bpp canvas data; - colormaps are valid only for the default visual.
Unsupported screens, depths, visual classes, and non-default visuals are
reported as missing by visual/depth queries and rejected by window or colormap
creation with BadMatch. Adding multiple screens, other depths, PseudoColor,
or alternate visuals should update the runtime harness expectations at the same
time.
This project is released under the MIT License.
Some X11 public header code depends on the original license.