From 014d700f9197a51127191be6673ab78e04b128f8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 9 Nov 2015 14:29:23 -0500 Subject: [PATCH] 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 1ac852136..00c231446 100644 --- a/src/bin/e_comp_x.c +++ b/src/bin/e_comp_x.c @@ -1158,9 +1158,9 @@ _e_comp_x_evas_mirror_hidden(void *data, Evas_Object *obj EINA_UNUSED, void *eve { E_Client *ec = data; + if (!ec->comp_data) return; if ((!ec->iconic) || (!ec->comp_data->iconic)) return; - if (ec->comp_data) - _e_comp_x_client_hide(ec); + _e_comp_x_client_hide(ec); } static void @@ -1168,9 +1168,9 @@ _e_comp_x_evas_mirror_visible(void *data, Evas_Object *obj EINA_UNUSED, void *ev { E_Client *ec = data; + if (!ec->comp_data) return; if ((!ec->iconic) || ec->comp_data->iconic) return; - if (ec->comp_data) - _e_comp_x_client_show(ec); + _e_comp_x_client_show(ec); } static void