x11/surface: Clear compute_size idle source also when destroying
authorJonas Ådahl <jadahl@gmail.com>
Fri, 10 Mar 2023 22:30:51 +0000 (23:30 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 10 Mar 2023 22:34:50 +0000 (23:34 +0100)
commitf2a0a8b8be41210793e786b05a7d2e1edcf8d38f
treea617e1ebaf7b9fe4cf745e0a6dc2d07d5db1ef9c
parent4014e956cdd15867c0ac70071fc1eef120c89559
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: https://gitlab.gnome.org/GNOME/mutter/-/issues/2678
gdk/x11/gdksurface-x11.c