forked from enlightenment/efl
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:
parent
79a01f9ab3
commit
be862c1d7f
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue