Figured out the window system a bit. Docs in comments in background.c