Wait for all pending unmaps before restoring focus
When reparenting windows, if multiple decoration changes happen in a short period of time, the reparenting requests may be queued.
- unmaps counter was only counting the first reparent request
- mutter should wait for the last MapNotify event before restoring focus
Closes: #649
Signed-off-by: Rémi Bernon rbernon@codeweavers.com
Edited by Rémi Bernon