diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-08-22 16:02:54 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-08-22 16:02:54 +0800 |
commit | 358fab1eb85cecb34ca45f492be2e623ab443a5e (patch) | |
tree | 7a3c986c887ee8a34562806a6f3960bb1410c84e | |
parent | 64cc7e6fe9b37afbc55fe0c5166132e32ac3f994 (diff) | |
parent | fb1f95dfba027a0cb62bf94b77a429c5809f47fc (diff) | |
download | gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.tar gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.tar.gz gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.tar.bz2 gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.tar.lz gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.tar.xz gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.tar.zst gsoc2013-empathy-358fab1eb85cecb34ca45f492be2e623ab443a5e.zip |
Merge remote-tracking branch 'pochu/preview-position'
-rw-r--r-- | src/empathy-call-window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 8116ea79d..c1cf56141 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -874,9 +874,14 @@ empathy_call_window_preview_on_drag_begin_cb (ClutterDragAction *action, { ClutterActor *stage = clutter_actor_get_stage (actor); ClutterActor *preview = clutter_clone_new (actor); + gfloat rel_x, rel_y; clutter_container_add_actor (CLUTTER_CONTAINER (stage), preview); - clutter_actor_set_position (preview, event_x, event_y); + + clutter_actor_transform_stage_point (actor, event_x, event_y, + &rel_x, &rel_y); + + clutter_actor_set_position (preview, event_x - rel_x, event_y - rel_y); clutter_drag_action_set_drag_handle (action, preview); |