events: Bypass windows with attached dialogs
We attach modal dialogs to indicate that the user cannot interact with the parent window. This is the behavior that GTK implements for modal transients, but it only works for windows in the same process.
Enforce that behavior in the compositor to get the same behavior with "foreign" windows and other toolkits.
Related: gnome-shell#4825