Evas filters: Force filter redraw if object changed
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 30 Jun 2015 02:45:55 +0000 (11:45 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 30 Jun 2015 02:47:11 +0000 (11:47 +0900)
Somehow I broke this when introducing the eo mixin.
This is what broke @cedric's work on the snapshot widget!

TODO: Verify that the contents changed, and not just X,Y.

src/lib/evas/canvas/evas_filter_mixin.c

index b2433b8..ffc8dfa 100644 (file)
@@ -153,6 +153,12 @@ evas_filter_object_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
                                                     fcow->state.pos);
              if (redraw)
                DBG("Filter redraw by state change!");
+             else if (obj->changed)
+               {
+                  // FIXME: Check that something else than X,Y changed!
+                  redraw = EINA_TRUE;
+                  DBG("Filter redraw by object content change!");
+               }
 
              // Scan proxies to find if any changed
              if (!redraw && fcow->sources)