How uint23/sxwm works
sxwm is a configurable X11 tiling window manager. A user starts it as an X session; it loads configuration, manages client windows, and provides window/workspace controls. The implementation concentrates most runtime behavior in sxwm.c, with parsing and shared state split into parser.c and common.h. The README points to default_sxwmrc for the complete feature and option list, but its contents were not provided, so those capabilities are represented only at the configuration level. Some subsystem boundaries and event-loop details are therefore necessarily broad.
Main entry points: sxwm.c Window manager runtime · parser.c Config parser · common.h Config and WM state · utils.c Logging and errors
Components 14
Configuration
- Default configuration
default_sxwmrc - Config parser
parser.c - Config and WM state
common.h - Parser declarations
parser.h
Window management
- Window manager runtime
sxwm.c - Window controls
sxwm.c - Workspaces and clients
sxwm.c - Tiling and placement
sxwm.c - X11 and EWMH
sxwm.c
Runtime support
- Logging and errors
utils.c - Runtime declarations
utils.h
Other components
- User
- X server
- X applications
Connections 19
- User → Window manager runtime: starts session
README.md - Default configuration → Config parser: provides settings
- Window manager runtime → Config parser: loads configuration
sxwm.c - Config parser → Config and WM state: fills settings
parser.c - Window manager runtime → Config and WM state: uses shared state
sxwm.c - Config parser → Logging and errors: reports parse issues
parser.c - Window manager runtime → Logging and errors: reports runtime issues
sxwm.c - Window manager runtime → X server: opens display
sxwm.c - X applications → X server: create windows
- X server → Window manager runtime: delivers window events
- Window manager runtime → X server: manages windows
sxwm.c - Window manager runtime → Workspaces and clients: manages clients
sxwm.c - Window manager runtime → Tiling and placement: arranges clients
sxwm.c - Window manager runtime → Window controls: handles controls
sxwm.c - Window controls → Workspaces and clients: changes workspace state
sxwm.c - Window controls → Tiling and placement: updates placement
sxwm.c - X11 and EWMH → X server: reads window properties
sxwm.c - Window manager runtime → Runtime declarations: uses error and log API
sxwm.c - Config parser → Parser declarations: implements parser API
parser.c