By telling all windows to close.
Also merge both PollEvents and WaitEvents.
wayland: Merge code for PollEvents and WaitEvents, and handle disconn…
Addressed the comments left to e5f48e2.
Thanks! With a minor tweak to the commit message your patch was pushed as:
5268914..4974585 master -> master