Exit when all the "root windows" are hidden. Support the WM_DELETE protocol to hide a "root window".
no idea if anything runs yet. it compiles =)