discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6252ac29daefde8151db46668b8cba09bda1fc52

commit 6252ac29daefde8151db46668b8cba09bda1fc52
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Sep 24 16:31:57 2015 -0400

    add csd case for compositor frame adjust messages
    
    not 100% perfect, but close enough
---
 src/bin/e_comp_object.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index ae7d72e..f17ccc6 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -822,10 +822,20 @@ _e_comp_object_pixels_get(void *data, Evas_Object *obj 
EINA_UNUSED)
    //INF("PIXEL GET %p: %dx%d || %dx%d", ec, ec->w, ec->h, pw, ph);
    e_pixmap_image_opaque_get(cw->ec->pixmap, &bx, &by, &bxx, &byy);
    if (bxx && byy)
-     bxx = pw - (bx + bxx), byy = ph - (by + byy);
+     {
+        bxx = pw - (bx + bxx), byy = ph - (by + byy);
+        evas_object_image_border_set(cw->obj, bx, bxx, by, byy);
+     }
+   else if (cw->client_inset.calc && (!cw->frame_object)) //CSD
+     {
+        bx = -cw->client_inset.l + 4, by = -cw->client_inset.t + 4;
+        bxx = -cw->client_inset.r, byy = -cw->client_inset.b;
+     }
    else
-     bx = by = bxx = byy = 0;
-   evas_object_image_border_set(cw->obj, bx, bxx, by, byy);
+     {
+        bx = by = bxx = byy = 0;
+        evas_object_image_border_set(cw->obj, bx, bxx, by, byy);
+     }
    {
       Edje_Message_Int_Set *msg;
       Edje_Message_Int msg2;

-- 


Reply via email to