aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-26 16:37:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:38:24 +0000
commit8a4efb34276e9f15a65304477c40e71aa281f7ae (patch)
treefc0e432906d737f7cf5af72c078ff855d49e2b1c
parentfeature: add a feature flag (for --version) for fractional scaling (diff)
wayland: warn when fractional scaling isn’t available
-rw-r--r--wayland.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 0f5cad2b..28bb2b6f 100644
--- a/wayland.c
+++ b/wayland.c
@@ -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;