wayland: add wayl_fractional_scaling()

Returns true if fractional scaling is available.
This commit is contained in:
Daniel Eklöf 2023-06-22 15:01:33 +02:00
parent 29a14632d3
commit 913ae94cf9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 0 deletions

View file

@ -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
}