summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-10-12 11:02:50 -0400
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commitbbe9c3b205eaa06a4f6a6fa7e3590e637335c8d9 (patch)
treeb4bba15907f7d0801bd41b9e3b6801b3557ac77e
parentf985435bffe20c10c8f8902d906d015883beee32 (diff)
elementary: Fix calling ecore_evas_wayland_move with improper values
Summary: As ecore_evas_wayland_move ends up updating the location of the ecore_wl_window, we should be calling move with the proper geometry as this ends up updating the internal ecore_wl_window geometry (which in turn sends to xdg_surface_set_window_geometry). This is part of a fix where xdg_surface_set_window_geometry was getting sent inproper values. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elm_win.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 65388e3f9..6250cf97f 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -2619,6 +2619,8 @@ _elm_win_frame_cb_move_start(void *data,
2619 const char *sig EINA_UNUSED, 2619 const char *sig EINA_UNUSED,
2620 const char *source) 2620 const char *source)
2621{ 2621{
2622 int ox, oy;
2623
2622 ELM_WIN_DATA_GET(data, sd); 2624 ELM_WIN_DATA_GET(data, sd);
2623 2625
2624 if (!sd) return; 2626 if (!sd) return;
@@ -2638,7 +2640,9 @@ _elm_win_frame_cb_move_start(void *data,
2638 * position. The new position will get updated automatically when 2640 * position. The new position will get updated automatically when
2639 * the move is finished */ 2641 * the move is finished */
2640 2642
2641 ecore_evas_wayland_move(sd->ee, sd->screen.x, sd->screen.y); 2643 edje_object_part_geometry_get(sd->frame_obj, "elm.spacer.opaque",
2644 &ox, &oy, NULL, NULL);
2645 ecore_evas_wayland_move(sd->ee, ox, oy);
2642} 2646}
2643 2647
2644static void 2648static void