Fix crash on non-kwin wayland compositors
GnuPG-Bug-ID: 6930
I'm not entirely sure what's happening here. My theory we're trying to export the window while it's not yet correctly set up in the compositor, which causes the compositor to throw us an error. This could depend on how exactly the compositor is processing things internally, which would explain why it works fine with kwin. With the patch, the exporting is slightly delayed and i haven't seen any crashes with it. (Testing on sway)