Ecore_Evas: Use an easier check for If existing ecore_evas is already
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Jul 2011 17:37:04 +0000 (17:37 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Jul 2011 17:37:04 +0000 (17:37 +0000)
alpha. No need to do comparisons like this.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61611 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_x.c

index 57fec75..c0cd888 100644 (file)
@@ -1724,8 +1724,7 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha)
    XWindowAttributes att;
 #endif
 
-   if (((ee->alpha) && (alpha)) || ((!ee->alpha) && (!alpha)))
-     return;
+   if ((ee->alpha == alpha)) return;
 
    if (!strcmp(ee->driver, "software_x11"))
      {