aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-09 17:46:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-09 17:46:09 +0000
commit3e5f011f7571fdbe45d143049d0e49620eadbef9 (patch)
treec4e03a753637737c4235b308038bc9885cc45bfd
parentwayland: register FDM hook early, to avoid unregister errors when failing (diff)
wayland: make a missing presentation time interface an error
If the user wanted to do presentation timing, and the interface isn't there, then this is an error.
-rw-r--r--wayland.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/wayland.c b/wayland.c
index f06668ac..0baafa28 100644
--- a/wayland.c
+++ b/wayland.c
@@ -780,9 +780,10 @@ wayl_init(const struct config *conf, struct fdm *fdm)
if (wayl->primary_selection_device_manager == NULL)
LOG_WARN("no primary selection available");
- if (conf->presentation_timings && wayl->presentation == NULL)
- LOG_WARN("presentation time interface not implemented by compositor; "
- "timings will not be available");
+ if (conf->presentation_timings && wayl->presentation == NULL) {
+ LOG_ERR("presentation time interface not implemented by compositor");
+ goto out;
+ }
tll_foreach(wayl->monitors, it) {
LOG_INFO(