antognolli pushed a commit to branch master.

commit 787dc01e2fc61e62d1f8be9b37719da174e94c7c
Author: Rafael Antognolli <[email protected]>
Date:   Mon Apr 29 11:25:02 2013 -0300

    elm/wayland: Move the frame object to -fx, -fy.
    
    It is not a special object anymore, and does not need special handling.
    Just move it to the correct position, since the canvas 0,0 point now has
    an offset.
---
 src/lib/elm_win.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 0f1ac17..cf6c544 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -610,10 +610,11 @@ _elm_win_resize_job(void *data)
 
    if (sd->frame_obj)
      {
-        int fw, fh;
+        int fx, fy, fw, fh;
 
-        evas_output_framespace_get(sd->evas, NULL, NULL, &fw, &fh);
+        evas_output_framespace_get(sd->evas, &fx, &fy, &fw, &fh);
         evas_object_resize(sd->frame_obj, w + fw, h + fh);
+        evas_object_move(sd->frame_obj, -fx, -fy);
      }
 
    evas_object_resize(sd->obj, w, h);
@@ -2312,7 +2313,6 @@ _elm_win_frame_add(Elm_Win_Smart_Data *sd,
    elm_widget_theme_object_set
      (sd->obj, sd->frame_obj, "border", "base", style);
 
-   evas_object_is_frame_object_set(sd->frame_obj, EINA_TRUE);
    evas_object_move(sd->frame_obj, 0, 0);
    evas_object_resize(sd->frame_obj, 1, 1);
 

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to