mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
wayland: add wayl_fractional_scaling()
Returns true if fractional scaling is available.
This commit is contained in:
parent
29a14632d3
commit
913ae94cf9
2 changed files with 12 additions and 0 deletions
10
wayland.c
10
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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue