e_comp: cancel hwc below quickpanel windows when open 40/158440/1 accepted/tizen/unified/20171102.061619 submit/tizen/20171101.082936
authorJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 1 Nov 2017 03:46:48 +0000 (12:46 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 1 Nov 2017 03:46:52 +0000 (12:46 +0900)
   if e_config->use_desk_smart_obj is 1,
   e_desk smart obj became a child of canvas.
   and the smart obj has quickpanel as a member of it
   so, quickpanel window couldn't be a child of canvas, but e_desk

Change-Id: I8b6b84f7e9142846244651eea19dcb2cf9c66e80

src/bin/e_comp.c

index 317d88daedeaf2e6fac3ee4714ffbd13b8da38e7..15e216b7748a51837a5483439a72bdf0b49859a3 100644 (file)
@@ -1,5 +1,6 @@
 #include "e.h"
 #include <sys/xattr.h>
+#include "services/e_service_quickpanel.h"
 
 #define OVER_FLOW 1
 //#define BORDER_ZOOMAPS
@@ -718,6 +719,12 @@ _e_comp_hwc_prepare(void)
         EINA_LIST_FOREACH(vis_clist, vl, ec)
           {
              // check clients not able to use hwc
+             if (E_POLICY_QUICKPANEL_LAYER >= evas_object_layer_get(ec->frame))
+               {
+                  // check whether quickpanel is open than break
+                  if (e_qp_visible_get()) break;
+               }
+
              // if ec->frame is not for client buffer (e.g. launchscreen)
              if (e_comp_object_content_type_get(ec->frame) != E_COMP_OBJECT_CONTENT_TYPE_INT_IMAGE)
                 goto nextzone;