discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=551657e02a1165c3940a98c10f5d2019d1c6a5fe

commit 551657e02a1165c3940a98c10f5d2019d1c6a5fe
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Nov 9 14:29:23 2015 -0500

    check client comp data existence in x11 mirror visibility callbacks
---
 src/bin/e_comp_x.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index e5a0989..dce9641 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -1176,9 +1176,9 @@ _e_comp_x_evas_mirror_hidden(void *data, Evas_Object *obj 
EINA_UNUSED, void *eve
 {
    E_Client *ec = data;
 
+   if (!_e_comp_x_client_data_get(ec)) return;
    if ((!ec->iconic) || (!ec->comp_data->iconic)) return;
-   if (_e_comp_x_client_data_get(ec))
-     _e_comp_x_client_hide(ec);
+   _e_comp_x_client_hide(ec);
 }
 
 static void
@@ -1186,9 +1186,9 @@ _e_comp_x_evas_mirror_visible(void *data, Evas_Object 
*obj EINA_UNUSED, void *ev
 {
    E_Client *ec = data;
 
+   if (!_e_comp_x_client_data_get(ec)) return;
    if ((!ec->iconic) || ec->comp_data->iconic) return;
-   if (_e_comp_x_client_data_get(ec))
-     _e_comp_x_client_show(ec);
+   _e_comp_x_client_show(ec);
 }
 
 static void

-- 


Reply via email to