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:
@@ -37,6 +37,13 @@ static struct Option waylandOptions[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true,
|
||||
},
|
||||
{
|
||||
.module = "wayland",
|
||||
.name = "fractionScale",
|
||||
.description = "Enable fractional scale",
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true,
|
||||
},
|
||||
{0}
|
||||
};
|
||||
|
||||
@@ -66,7 +73,8 @@ static bool waylandInit(const LG_DSInitParams params)
|
||||
memset(&wlWm, 0, sizeof(wlWm));
|
||||
wl_list_init(&wlWm.surfaceOutputs);
|
||||
|
||||
wlWm.warpSupport = option_get_bool("wayland", "warpSupport");
|
||||
wlWm.warpSupport = option_get_bool("wayland", "warpSupport");
|
||||
wlWm.useFractionalScale = option_get_bool("wayland", "fractionScale");
|
||||
|
||||
wlWm.display = wl_display_connect(NULL);
|
||||
wlWm.width = params.w;
|
||||
|
Reference in New Issue
Block a user