[client] wayland: handle output scale changes

If the scale factor of an wl_output changes while the client is running,
the maximum scale factor is not updated. This may result in incorrect
scaling.

Therefore, when the scale factor is changed, we should generate a
resize event.
This commit is contained in:
Quantum
2021-02-22 02:19:03 -05:00
committed by Geoffrey McRae
parent 0089c1252f
commit 389d8824e2
4 changed files with 6 additions and 4 deletions

View File

@@ -89,6 +89,7 @@ static bool waylandProbe(void)
static bool waylandInit(const LG_DSInitParams params)
{
memset(&wlWm, 0, sizeof(wlWm));
wl_list_init(&wlWm.surfaceOutputs);
wlWm.warpSupport = option_get_bool("wayland", "warpSupport");