From ab6327da2699e81e877c6f9f63786ff6d3a271cd Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 24 Nov 2020 00:00:43 +0100 Subject: wayland: Use wl_output_release with wl_output v3 wl_output_release, the use of which was recently introduced, is not available until wl_output interface version 3. However, only wl_output version 2 was bound. This lead to protocol errors when a display was disconnected, causing foot to terminate. Instead, only use wl_output_release if wl_output version 3 is provided and bound. Otherwise, just use wl_output_destroy. Closes: https://codeberg.org/dnkl/foot/issues/219 --- wayland.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h index 7bf5eb80..876d791c 100644 --- a/wayland.h +++ b/wayland.h @@ -294,6 +294,8 @@ struct monitor { char *description; float inch; /* e.g. 24" */ + + bool use_output_release; }; struct wayland; -- cgit v1.3