set pixmap image borders for wayland clients
authorMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 10 Feb 2015 02:15:50 +0000 (21:15 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 10 Feb 2015 02:16:40 +0000 (21:16 -0500)
src/bin/e_comp_wl.c

index 6fd003701f51b68cee73c3638fb02b42ba2ca477..a14d9e56a25d267dfb14305938d32dcf0fee2e86 100644 (file)
@@ -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);