not set new_attach twice 88/61688/1
authorBoram Park <boram1288.park@samsung.com>
Tue, 8 Mar 2016 11:29:02 +0000 (20:29 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 10 Mar 2016 01:07:26 +0000 (10:07 +0900)
Change-Id: Ic333fce2d977ff263f75d29ce244d0d76a9f6d8c

src/bin/e_comp_wl.c

index 0e96c3c375ea01c06563347ffb15a4e9332b8ccf..0961b3a8b52271df0511da628ae02e6a419a77dd 100644 (file)
@@ -3168,7 +3168,12 @@ _e_comp_wl_subsurface_commit_to_cache(E_Client *ec)
    sdata->cached.sx = cdata->pending.sx;
    sdata->cached.sy = cdata->pending.sy;
    /* sdata->cached.buffer = cdata->pending.buffer; */
-   sdata->cached.new_attach = cdata->pending.new_attach;
+
+   /* When subsurface is sync mode, the commit of subsurface can happen before
+    * a parent surface is committed. In this case, we can't show a attached
+    * buffer on screen.
+    */
+   //sdata->cached.new_attach = cdata->pending.new_attach;
 
    sdata->cached.buffer_viewport.changed |= cdata->pending.buffer_viewport.changed;
    sdata->cached.buffer_viewport.buffer =cdata->pending.buffer_viewport.buffer;