mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[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:
@@ -31,7 +31,7 @@ static void outputUpdateScale(struct WaylandOutput * node)
|
||||
{
|
||||
wl_fixed_t original = node->scale;
|
||||
|
||||
if (!wlWm.viewporter || !node->logicalWidth || !node->logicalHeight)
|
||||
if (!wlWm.useFractionalScale || !wlWm.viewporter || !node->logicalWidth)
|
||||
node->scale = wl_fixed_from_int(node->scaleInt);
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user