Skip to content

x11/surface: Clear compute_size idle source also when destroying

Doing it on hide() is not enough, since in some edge cases we didn't ever actually map, we just attempted to compute the size, e.g. in response to a ConfigureNotify event, then the window was destroyed.

Related: mutter#2678 (closed)

This mitigates a crash in the mutter X11 window decoration client. It doesn't actually fix the linked bug, it just avoids a use-after-free issue.

Merge request reports