discomfitor pushed a commit to branch master.

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

commit ce062750b67d11beaa44fa83f7c972236952c181
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Feb 9 21:15:50 2015 -0500

    set pixmap image borders for wayland clients
---
 src/bin/e_comp_wl.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 6fd0037..a14d9e5 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -2681,8 +2681,23 @@ e_comp_wl_surface_commit(E_Client *ec)
 
         if ((src = eina_tiler_intersection(ec->comp_data->pending.opaque, 
tmp)))
           {
+             Eina_Rectangle *rect;
+             Eina_Iterator *itr;
+
+             itr = eina_tiler_iterator_new(src);
+             /* this must be exactly 1 rect */
+             EINA_ITERATOR_FOREACH(itr, rect)
+               {
+                  e_pixmap_image_border_set(ec->pixmap, rect->x, ec->client.w 
- rect->x,
+                    rect->y, ec->client.h - rect->y);
+                  break;
+               }
+
+             eina_iterator_free(itr);
              eina_tiler_free(src);
           }
+        else
+          e_pixmap_image_border_set(ec->pixmap, 0, 0, 0, 0);
 
         eina_tiler_free(tmp);
         eina_tiler_clear(ec->comp_data->pending.opaque);

-- 


Reply via email to