[client] wayland: make it possible to disable fractional scaling

The method used is not guaranteed to work on all Wayland compositors,
so offer a way out. We need to support it anyways in case xdg_output
or wp_viewporter protocols are not available.
This commit is contained in:
Quantum
2021-07-31 22:57:03 -04:00
committed by Geoffrey McRae
parent b3ca872cef
commit 0ad469178a
3 changed files with 11 additions and 2 deletions

View File

@@ -174,6 +174,7 @@ struct WaylandDSState
struct zxdg_output_manager_v1 * xdgOutputManager;
struct wl_list outputs; // WaylandOutput::link
struct wl_list surfaceOutputs; // SurfaceOutput::link
bool useFractionalScale;
struct wl_list poll; // WaylandPoll::link
struct wl_list pollFree; // WaylandPoll::link