e_comp_wl: force update after changing alpha 42/93042/1
authorBoram Park <boram1288.park@samsung.com>
Thu, 20 Oct 2016 06:19:28 +0000 (15:19 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 20 Oct 2016 06:38:59 +0000 (15:38 +0900)
force update for changing alpha value. If the native surface has been already
set before, changing alpha value can't be applied to egl image.

Change-Id: I5f8120c71fcc3d3048baa807389d9ee44068e9c1

src/bin/e_comp_wl.c

index 15b8779197612a055b3789be5f2a2f67600fc32d..ff15655704205eb6c0cede46a35ab132faaf4f6c 100644 (file)
@@ -3410,6 +3410,15 @@ _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec)
    /* set alpha only if SW path */
    e_comp_object_alpha_set(ec->frame, EINA_TRUE);
 
+   /* force update for changing alpha value. If the native surface has been already
+    * set before, changing alpha value can't be applied to egl image.
+    */
+   e_comp_object_native_surface_set(ec->frame, EINA_FALSE);
+   e_pixmap_image_refresh(ec->pixmap);
+   e_comp_object_damage(ec->frame, 0, 0, ec->w, ec->h);
+   e_comp_object_dirty(ec->frame);
+   e_comp_object_render(ec->frame);
+
    _e_comp_wl_subsurface_restack(ec);
    _e_comp_wl_subsurface_restack_bg_rectangle(ec);