only check dirty smart callbacks on non-new_client deskmirror clients
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 21 Aug 2015 02:02:36 +0000 (22:02 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 21 Aug 2015 02:02:36 +0000 (22:02 -0400)
src/bin/e_deskmirror.c

index 182ce89..fee6f30 100644 (file)
@@ -662,7 +662,7 @@ _e_deskmirror_mirror_add(E_Smart_Data *sd, Evas_Object *obj)
    evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, (Evas_Object_Event_Cb)_comp_object_configure, m);
    evas_object_event_callback_add(obj, EVAS_CALLBACK_MOVE, (Evas_Object_Event_Cb)_comp_object_configure, m);
    evas_object_smart_callback_add(obj, "frame_recalc_done", _e_deskmirror_mirror_frame_recalc_cb, m);
-   if (!ec->redirected)
+   if ((!ec->redirected) && (!ec->new_client))
      evas_object_smart_callback_add(obj, "dirty", _comp_object_dirty, m);
    sd->mirrors = eina_inlist_append(sd->mirrors, EINA_INLIST_GET(m));
    eina_hash_add(sd->mirror_hash, &obj, m);