move comp object tiler creation to helper function to catch retries
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 27 Mar 2014 20:19:16 +0000 (16:19 -0400)
committerMike Blumenkrantz <zmike@samsung.com>
Thu, 27 Mar 2014 20:47:19 +0000 (16:47 -0400)
src/bin/e_comp_object.c

index 9c5fce06562f6b191f6a8903cf1d8958dc9a874d..49fdd27400d3669bf547d3bacbe2b821cfeaa0c7 100644 (file)
@@ -1246,6 +1246,12 @@ _e_comp_intercept_show_helper(E_Comp_Object *cw)
         EC_CHANGED(cw->ec);
         return;
      }
+
+   if ((!cw->ec->input_only) && (!cw->ec->ignored) && (!cw->updates))
+     {
+        cw->updates = eina_tiler_new(cw->ec->client.w, cw->ec->client.h);
+        eina_tiler_tile_size_set(cw->updates, 1, 1);
+     }
    if (cw->ec->input_only)
      {
         cw->real_hid = 0;
@@ -1320,12 +1326,6 @@ _e_comp_intercept_show(void *data, Evas_Object *obj EINA_UNUSED)
 #endif
         cw->redirected = 1;
         evas_object_color_set(cw->clip, ec->netwm.opacity, ec->netwm.opacity, ec->netwm.opacity, ec->netwm.opacity);
-
-        if ((!cw->ec->input_only) && (!cw->ec->ignored))
-          {
-             cw->updates = eina_tiler_new(cw->ec->client.w, cw->ec->client.h);
-             eina_tiler_tile_size_set(cw->updates, 1, 1);
-          }
      }
 
    _e_comp_intercept_show_helper(cw);