Common Lisp Window Manager
Extensible Common Lisp window manager.
How extensible? It's made out of extensions to itself, which is the only way to ensure extensibility.
The base WM class, CLWM:WM, implements a vaguely ICCCM-compliant window manager that does more or less nothing. All other functionality is implemented as extensions in CLWM-EXT; these are all mixin classes a final WM class should inherit from along with WM. Because there's no DEFWM macro (yet), you have to take a bit of care to have a valid class precedence list, since some mixins do inherit from others.
To use it, define your own WM class in the CLWM-USER package, then invoke RUN-WM on it; this spawns a thread. You might want to use XLIB:WITH-SERVER-GRABBED if you plan to send any X events from the REPL.
sbcl --non-interactive --load binary.lisp assumes you have Quicklisp; if you do, it builds a clwm binary with CLWM-USER::MAIN as the entry point. You can pass it a user init file as the only argument, this is loaded in the CLWM-USER package. You can invoke the START-SLYNK helper in this file to start a Slynk server and M-x sly-connect to your running WM.
The running WM, if any, is in *THE-WM*. If you need a destructive restart from the REPL, there's RESTART-WM. Other special variables in CLWM turn the debugger back on or print various things for your hacking convenience.
The example WM is a cwm-like, though not up to parity yet. Fans of other types of WM might be interested in the barebones REPARENTING-MIXIN and TILING-MIXIN extensions, but they aren't really usable as-is, they're just examples.
The key thing which makes clwm possible is CLOS: if a program is made out of generic functions, every generic function is an extension point. Of course, the provider of the generic functions can arrange them to facilitate extensibility, and the architecture herein likely still has flaws.