diff --git a/wayland.c b/wayland.c index 575d2e83..e01a3a50 100644 --- a/wayland.c +++ b/wayland.c @@ -2048,3 +2048,13 @@ wayl_get_activation_token( return true; } #endif + +bool +wayl_fractional_scaling(const struct wayland *wayl) +{ +#if defined(HAVE_FRACTIONAL_SCALE) + return wayl->fractional_scale_manager != NULL; +#else + return false; +#endif +} diff --git a/wayland.h b/wayland.h index a5316837..756da8d2 100644 --- a/wayland.h +++ b/wayland.h @@ -469,3 +469,5 @@ bool wayl_get_activation_token( struct wayland *wayl, struct seat *seat, uint32_t serial, struct wl_window *win, activation_token_cb_t cb, void *cb_data); #endif + +bool wayl_fractional_scaling(const struct wayland *wayl);