summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-04-24 17:32:44 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-04-24 17:32:44 +0000
commitadc77356f03c6aa149841da40dcd81de930f9c57 (patch)
tree28d0b57fb8413653ba65cff5ff882dcd34f74f39 /src/lib
parente2a2460b4a5cbe85f15c7a65a6db390f7625b614 (diff)
Elm: Update functions for moving/resizing elm_window (when a wayland
client). SVN revision: 70448
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_win.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 54127c0a7..1a52ce04f 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -796,6 +796,8 @@ _elm_win_obj_callback_move(void *data, Evas *e __UNUSED__, Evas_Object *obj, voi
796 evas_object_geometry_get(obj, &x, &y, NULL, NULL); 796 evas_object_geometry_get(obj, &x, &y, NULL, NULL);
797 win->screen.x = x; 797 win->screen.x = x;
798 win->screen.y = y; 798 win->screen.y = y;
799
800 /* FIXME: We should update ecore_wl_window_location here !! */
799 } 801 }
800 else if (win->img_obj) 802 else if (win->img_obj)
801 { 803 {
@@ -1563,8 +1565,13 @@ _elm_win_frame_cb_move_start(void *data, Evas_Object *obj __UNUSED__, const char
1563 if (!(win = data)) return; 1565 if (!(win = data)) return;
1564 /* FIXME: Change mouse pointer */ 1566 /* FIXME: Change mouse pointer */
1565 1567
1566 /* NB: 0,0 are dummy values. Wayland handles the move by itself */ 1568 /* NB: Wayland handles moving surfaces by itself so we cannot
1567 ecore_evas_move(win->ee, 0, 0); 1569 * specify a specific x/y we want. Instead, we will pass in the
1570 * existing x/y values so they can be recorded as 'previous' position.
1571 * The new position will get updated automatically when the move is
1572 * finished */
1573
1574 ecore_evas_wayland_move(win->ee, win->screen.x, win->screen.y);
1568} 1575}
1569 1576
1570static void 1577static void