display: Fix destruction order
MetaCompositorX11
might need the MetaDisplay
's x11_display
during shutdown (meta_sync_ring_destroy
-> meta_sync_free
),
and meta_display_shutdown_x11()
needs the MetaStack
as
it calls meta_stack_{freeze,thaw}()
. So fix the order
of destruction so that dependencies are destroyed
after dependants.
Closes: #2852 (closed)