wayland: warn when fractional scaling isn’t available

This commit is contained in:
Daniel Eklöf 2023-06-26 18:37:49 +02:00
parent 9db92bd942
commit 8a4efb3427
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1386,6 +1386,14 @@ wayl_init(struct fdm *fdm, struct key_binding_manager *key_binding_manager,
"bell.urgent will fall back to coloring the window margins red");
}
#if defined(HAVE_FRACTIONAL_SCALE)
if (wayl->fractional_scale_manager == NULL || wayl->viewporter == NULL) {
#else
if (true) {
#endif
LOG_WARN("fractional scaling not available");
}
if (presentation_timings && wayl->presentation == NULL) {
LOG_ERR("presentation time interface not implemented by compositor");
goto out;