Some work-in-progress changes and additions for a new windowing system.