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:
Mike Blumenkrantz 2015-11-13 15:09:03 -05:00
parent 6e7db171ad
commit 69a8de59b0
1 changed files with 2 additions and 3 deletions

View File

@ -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);
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 (wdata->win)
ecore_wl_window_update_size(wdata->win, ee->req.w, ee->req.h);
}
void