xdg-surface: prevent use-after-free in idle callback
I've checked other such uses of idle callbacks and as far as I can tell only here was missing the final remove.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
gitlab.freedesktop.org will be unavailable for up to a week starting March 16th, due to our ongoing infrastructure move. You can follow our planning tracker at https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/2076
I've checked other such uses of idle callbacks and as far as I can tell only here was missing the final remove.