allow client pixmap size to be used in place of actual client geom for tiler creation
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 23 Jan 2015 22:20:52 +0000 (17:20 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 23 Jan 2015 22:20:52 +0000 (17:20 -0500)
src/bin/e_comp_object.c

index 1f12a3d..5ed9485 100644 (file)
@@ -1396,7 +1396,12 @@ _e_comp_intercept_show(void *data, Evas_Object *obj EINA_UNUSED)
 
         if ((!cw->ec->input_only) && (!cw->ec->ignored))
           {
-             cw->updates = eina_tiler_new(cw->ec->client.w, cw->ec->client.h);
+             int w, h;
+
+             w = cw->ec->client.w, h = cw->ec->client.h;
+             if ((!w) || (!h))
+               e_pixmap_size_get(cw->ec->pixmap, &w, &h);
+             cw->updates = eina_tiler_new(w, h);
              eina_tiler_tile_size_set(cw->updates, 1, 1);
           }
      }