summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c6
-rw-r--r--src/lib/ecore_wl2/window_v6.x6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 87ef49dfe8..0a61e596ab 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -304,15 +304,15 @@ static const struct xdg_popup_listener _xdg_popup_listener =
304static void 304static void
305_ecore_wl2_window_xdg_popup_create(Ecore_Wl2_Window *win) 305_ecore_wl2_window_xdg_popup_create(Ecore_Wl2_Window *win)
306{ 306{
307 int gx, gy, gw, gh; 307 int gw, gh;
308 struct xdg_positioner *pos; 308 struct xdg_positioner *pos;
309 309
310 EINA_SAFETY_ON_NULL_RETURN(win->parent); 310 EINA_SAFETY_ON_NULL_RETURN(win->parent);
311 pos = xdg_wm_base_create_positioner(win->display->wl.xdg_wm_base); 311 pos = xdg_wm_base_create_positioner(win->display->wl.xdg_wm_base);
312 if (!pos) return; 312 if (!pos) return;
313 313
314 ecore_wl2_window_geometry_get(win, &gx, &gy, &gw, &gh); 314 ecore_wl2_window_geometry_get(win, NULL, NULL, &gw, &gh);
315 xdg_positioner_set_anchor_rect(pos, gx, gy, 1, 1); 315 xdg_positioner_set_anchor_rect(pos, 0, 0, 1, 1);
316 xdg_positioner_set_size(pos, gw, gh); 316 xdg_positioner_set_size(pos, gw, gh);
317 xdg_positioner_set_anchor(pos, XDG_POSITIONER_ANCHOR_TOP_LEFT); 317 xdg_positioner_set_anchor(pos, XDG_POSITIONER_ANCHOR_TOP_LEFT);
318 xdg_positioner_set_gravity(pos, ZXDG_POSITIONER_V6_ANCHOR_BOTTOM | 318 xdg_positioner_set_gravity(pos, ZXDG_POSITIONER_V6_ANCHOR_BOTTOM |
diff --git a/src/lib/ecore_wl2/window_v6.x b/src/lib/ecore_wl2/window_v6.x
index 24e453c057..b4c16d433f 100644
--- a/src/lib/ecore_wl2/window_v6.x
+++ b/src/lib/ecore_wl2/window_v6.x
@@ -107,15 +107,15 @@ static void
107_window_v6_popup_create(Ecore_Wl2_Window *win) 107_window_v6_popup_create(Ecore_Wl2_Window *win)
108{ 108{
109 struct zxdg_positioner_v6 *pos; 109 struct zxdg_positioner_v6 *pos;
110 int wx, wy, ww, wh; 110 int ww, wh;
111 111
112 EINA_SAFETY_ON_NULL_RETURN(win->parent); 112 EINA_SAFETY_ON_NULL_RETURN(win->parent);
113 pos = zxdg_shell_v6_create_positioner(win->display->wl.zxdg_shell); 113 pos = zxdg_shell_v6_create_positioner(win->display->wl.zxdg_shell);
114 if (!pos) return; 114 if (!pos) return;
115 115
116 ecore_wl2_window_geometry_get(win, &wx, &wy, &ww, &wh); 116 ecore_wl2_window_geometry_get(win, NULL, NULL, &ww, &wh);
117 117
118 zxdg_positioner_v6_set_anchor_rect(pos, wx, wy, 1, 1); 118 zxdg_positioner_v6_set_anchor_rect(pos, 0, 0, 1, 1);
119 zxdg_positioner_v6_set_size(pos, ww, wh); 119 zxdg_positioner_v6_set_size(pos, ww, wh);
120 zxdg_positioner_v6_set_anchor(pos, ZXDG_POSITIONER_V6_ANCHOR_TOP | 120 zxdg_positioner_v6_set_anchor(pos, ZXDG_POSITIONER_V6_ANCHOR_TOP |
121 ZXDG_POSITIONER_V6_ANCHOR_LEFT); 121 ZXDG_POSITIONER_V6_ANCHOR_LEFT);