summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-03-02 12:24:34 -0500
committerChris Michael <cp.michael@samsung.com>2015-03-02 12:25:27 -0500
commitbe862c1d7f19049445f0d0a3aca94c649088c6da (patch)
tree9e22bae3e214c6cadd1d53188f07bb24b90a190b /src/lib/ecore_wayland
parent79a01f9ab3dc49ccc16d3a7e65d4d93479effea9 (diff)
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>
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 87da43d..5216321 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -617,6 +617,10 @@ ecore_wl_window_update_size(Ecore_Wl_Window *win, int w, int h)
617 if (!win) return; 617 if (!win) return;
618 win->allocation.w = w; 618 win->allocation.w = w;
619 win->allocation.h = h; 619 win->allocation.h = h;
620 if (win->xdg_surface)
621 xdg_surface_set_window_geometry(win->xdg_surface,
622 win->allocation.x, win->allocation.y,
623 win->allocation.w, win->allocation.h);
620} 624}
621 625
622EAPI void 626EAPI void
@@ -627,6 +631,10 @@ ecore_wl_window_update_location(Ecore_Wl_Window *win, int x, int y)
627 if (!win) return; 631 if (!win) return;
628 win->allocation.x = x; 632 win->allocation.x = x;
629 win->allocation.y = y; 633 win->allocation.y = y;
634 if (win->xdg_surface)
635 xdg_surface_set_window_geometry(win->xdg_surface,
636 win->allocation.x, win->allocation.y,
637 win->allocation.w, win->allocation.h);
630} 638}
631 639
632EAPI struct wl_surface * 640EAPI struct wl_surface *