gdk/wayland: Prefer wl_output_release() over wl_output_destroy()
authorVlad Zahorodnii <vlad.zahorodnii@kde.org>
Tue, 22 Nov 2022 10:04:12 +0000 (12:04 +0200)
committerVlad Zahorodnii <vlad.zahorodnii@kde.org>
Tue, 22 Nov 2022 12:12:22 +0000 (14:12 +0200)
commit261bcd40bd0f5f66f3eeb7fa97df14c8c3dccbd6
tree8187f72f7ca0a5a3e33b9d975c7857b7e206e2a1
parent200f31f28571b974fea3435da1059981630d9a56
gdk/wayland: Prefer wl_output_release() over wl_output_destroy()

By using wl_output_release(), GDK lets the compositor to clean up the
output global more nicely.

For example, currently, most compositors remove the global and then
destroy it later after N seconds expire. With this, the compositor could
experiment with destroying the output global once all its resources are
destroyed.
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkmonitor-wayland.c