More comments.
Fixed modality issues on Mac OS X.
Split the modal queue stuff into its own files.
Implemented the modal queue on the GTK+ backend to ensure proper queue ordering.