ecore-wl: Send xdg_surface_set_window_geometry when we update window

size/position

Summary: We should be implementing xdg_surface_set_window_geometry for
efl apps, so this commit adds the function call to that.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-03-02 12:24:34 -05:00
parent 79a01f9ab3
commit be862c1d7f
1 changed files with 8 additions and 0 deletions

View File

@ -617,6 +617,10 @@ ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h)
if (!win) return;
win->allocation.w = w;
win->allocation.h = h;
if (win->xdg_surface)
xdg_surface_set_window_geometry(win->xdg_surface,
win->allocation.x, win->allocation.y,
win->allocation.w, win->allocation.h);
}
EAPI void
@ -627,6 +631,10 @@ ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y)
if (!win) return;
win->allocation.x = x;
win->allocation.y = y;
if (win->xdg_surface)
xdg_surface_set_window_geometry(win->xdg_surface,
win->allocation.x, win->allocation.y,
win->allocation.w, win->allocation.h);
}
EAPI struct wl_surface *