visibility: fix a checking code for opaque type. 36/91536/3 accepted/tizen/common/20161010.150005 submit/tizen/20161010.105954
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 10 Oct 2016 06:08:23 +0000 (15:08 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 10 Oct 2016 06:17:59 +0000 (15:17 +0900)
there was a problem that alpha and non-opaque window was selected as a activity,
because only considered that 0 meant a non-opaque, but -1 also means non-opaque.

Change-Id: Ic64df32f503ca2d29f57bb19843ccd1e291afa2c

src/bin/e_policy_visibility.c

index cd75871..fcf9d23 100644 (file)
@@ -913,7 +913,7 @@ _e_vis_ec_activity_check(E_Client *ec)
    /* check if ignored */
    if (e_client_util_ignored_get(ec)) return EINA_FALSE;
    /* check transparent */
-   if ((ec->argb) && (ec->visibility.opaque == 0)) return EINA_FALSE;
+   if ((ec->argb) && (ec->visibility.opaque <= 0)) return EINA_FALSE;
    /* check deleted client */
    if (e_object_is_del(E_OBJECT(ec))) return EINA_FALSE;
    /* check special client */