windowmaker-wl/WindowMaker/Styles
Levi Neely a486329b52 Wayland backend abstraction: WMBackend vtable (Phases 0–30)
Introduce a display-system-agnostic WMBackend vtable that routes all
display operations through function pointers, making the WM policy
layer independent of X11.  The X11 implementation is preserved in
src/backend/x11/ and behaviour is unchanged.

Key structural changes
──────────────────────
• src/backend/backend_types.h — backend-neutral type definitions:
    WNativeWindow, WKeyCode, WContextKey, WBackendScreen,
    WBackendEvent (+typed fields), WNormalHints, WWMHints,
    WNETWindowType, WHeadGeometry, WClientAttributes, WClientVisual,
    WSegment, WPoint, WM_KEY_* keysym constants, WA_* atom IDs,
    WKB_GROUP*_INDEX, WCUR_NONE

• src/backend/backend.h — WMBackend vtable (~100 function-pointer
    slots) covering: frame/context lifecycle, stacking, focus, grabs,
    pointer, keyboard, overlays, properties, ICCCM, EWMH/NETWM,
    monitors, screen setup, cursors, extensions, error handlers.
    No <X11/> headers remain in this file after Phase 30.

• src/backend/x11/ — X11 backend implementation:
    x11_backend.c  full vtable; all display calls confined here
    x11_props.c    WM_NORMAL_HINTS / WM_HINTS translation
    x11_event.c    XEvent → WBackendEvent translation
    x11_monitor.c  Xinerama / RandR monitor query

Policy files cleaned
────────────────────
All 47 files in WM_POLICY_CLEAN_FILES pass check-no-x11-policy
(no direct #include <X11/> anywhere).  X11 types that still appear
in policy structs (Visual*, Colormap, Window, Atom …) arrive only
transitively via WINGs.h; the vtable boundary itself is X11-free.

Tests
─────
• tests/smoke-test.sh — full Xvfb lifecycle test (PASS)
• tests/test_geom.c   — geometry / constraint unit tests
• tests/test_x11_event.c — WBackendEvent field extraction tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 19:20:00 +01:00
..
Adwaita.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Autumn.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Black.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
BlackTexture.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Blue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
BlueDawn.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
BlueishGreen.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Brown.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Brownish.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Chumbo.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Copper.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
DarkBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
DarkRed.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Emerald.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Fire.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Food.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Golden.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Green.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
GreyBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Gtk.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
IRednBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Interlace.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
LightBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Makefile.am WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Makefile.in Wayland backend abstraction: WMBackend vtable (Phases 0–30) 2026-03-27 19:20:00 +01:00
NewBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
NightSky.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Pastel.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Pink.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Pumpkin.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Purple.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Purplish.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Red.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
RednBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Spring.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Summer.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
Traditional.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
VioletBlue.style WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00