Send the pending frame callbacks when hiding the window

This does what https://github.com/mer-packages/qtwayland/commit/6c7dc48209af51c3b392d6ff4127c91c35fc1aea does, and it's better to do this here than to hack in qtwayland.