aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-11-23 23:00:43 +0000
committerKenny Levinsen <kl@kl.wtf>2020-11-24 23:19:23 +0000
commitab6327da2699e81e877c6f9f63786ff6d3a271cd (patch)
treea4ed12788f00e8d8dd3a355e70ba97fdceae3831 /wayland.h
parentrender: don’t call term_arm_blink_timer() from multiple threads (diff)
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
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h2
1 files changed, 2 insertions, 0 deletions
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;