devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=cfce071a343edd3a0eb963c008fb9355436e9128
commit cfce071a343edd3a0eb963c008fb9355436e9128 Author: Chris Michael <[email protected]> Date: Thu Sep 24 11:56:45 2015 -0400 ecore-wl2: Implement support for window resizing Signed-off-by: Chris Michael <[email protected]> --- src/lib/ecore_wl2/ecore_wl2_window.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index b6d537b..c9f19d0 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -394,6 +394,8 @@ ecore_wl2_window_move(Ecore_Wl2_Window *window, int x, int y) EAPI void ecore_wl2_window_resize(Ecore_Wl2_Window *window, int w, int h, int location) { + Ecore_Wl2_Input *input; + EINA_SAFETY_ON_NULL_RETURN(window); /* test for no-op resize */ @@ -403,15 +405,22 @@ ecore_wl2_window_resize(Ecore_Wl2_Window *window, int w, int h, int location) window->geometry.w = w; window->geometry.h = h; - _ecore_wl2_input_ungrab(window->input); + input = window->input; + if ((!input) && (window->parent)) + { + input = window->parent->input; + } - /* TODO: enable once input is done */ - /* if (window->xdg_surface) */ - /* xdg_surface_resize(window->xdg_surface, seat, */ - /* window->display->serial, location); */ - /* else if (window->wl_shell_surface) */ - /* wl_shell_surface_resize(window->wl_shell_surface, seat, */ - /* window->display->serial, location); */ + if ((!input) || (!input->wl.seat)) return; + + _ecore_wl2_input_ungrab(input); + + if (window->xdg_surface) + xdg_surface_resize(window->xdg_surface, input->wl.seat, + window->display->serial, location); + else if (window->wl_shell_surface) + wl_shell_surface_resize(window->wl_shell_surface, input->wl.seat, + window->display->serial, location); } EAPI void --
