windowmaker-wl/util
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
..
po Wayland backend abstraction: WMBackend vtable (Phases 0–30) 2026-03-27 19:20:00 +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
README WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
bughint WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
common.h WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
convertfonts.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
fontconv.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
geticonset.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
getstyle.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
seticons.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
setstyle.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wdread.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wdwrite.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wkdemenu.pl WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wm-oldmenu2new WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmagnify.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmaker.inst.in WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmgenmenu.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmgenmenu.h WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmiv.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmiv.h WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmmenugen.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmmenugen.h WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmmenugen_misc.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmmenugen_parse_wmconfig.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmmenugen_parse_xdg.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wmsetbg.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wxcopy.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00
wxpaste.c WindowMaker 0.96.0 upstream source 2026-03-26 15:38:49 +01:00

README

wm-oldmenu2new - converts between the plain text file menu format to the
 	 property list menu format.

bughint- gathers some information for bug reporting

geticonset- outputs the current set of icon assignments. Good for making
	themes.

setstyle- load style settings from a style file and setup WindowMaker

getstyle - gets current style settings and save into a file or create
	a theme pack.

seticons- merges icon definitions into WMWindowAttributes file


wmaker.inst- quick and dirty script to install necessary files from
	global configuration to user's directory. Look in the script to
	adapt it to your site.

wxcopy- copy input file or stdin into X cutbuffer

wxpaste- copy content of X cutbuffer into stdout

wmsetbg- set the workspace background into a image and make it persist between
	sessions.

wdwrite- write data into the defaults database (configuration files).

wdread- read Simple data from defaults database (for use in scripts for example)

wmagnify- a program to magnify the area near the mouse pointer,
	with real-time update

wkdemenu.pl- convert a KDE menu into a wmaker menu (for pipe)

wmiv- quick image viewer using wrlib