forked from enlightenment/efl
ecore-evas wayland: use correct values when updating wayland window size
by using the geometry from after the request size has been updated, scenarios such as the following can be avoided: [4208305.332] xdg_surface@46.set_window_geometry(0, 0, 1778, 1) [4208305.370] xdg_surface@46.set_window_geometry(0, 0, 1778, 250) @fix
This commit is contained in:
parent
6e7db171ad
commit
69a8de59b0
|
@ -603,9 +603,6 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wdata->win)
|
|
||||||
ecore_wl_window_update_size(wdata->win, ee->req.w, ee->req.h);
|
|
||||||
|
|
||||||
evas_output_size_get(ee->evas, &ow, &oh);
|
evas_output_size_get(ee->evas, &ow, &oh);
|
||||||
if ((ow != w) || (oh != h))
|
if ((ow != w) || (oh != h))
|
||||||
{
|
{
|
||||||
|
@ -639,6 +636,8 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
|
||||||
|
|
||||||
if (ee->func.fn_resize) ee->func.fn_resize(ee);
|
if (ee->func.fn_resize) ee->func.fn_resize(ee);
|
||||||
}
|
}
|
||||||
|
if (wdata->win)
|
||||||
|
ecore_wl_window_update_size(wdata->win, ee->req.w, ee->req.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue