discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1716f1a6fa38da24367f0bf21f54fe5ad0099662

commit 1716f1a6fa38da24367f0bf21f54fe5ad0099662
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jul 2 14:57:01 2015 -0400

    return NULL when a client's xwayland pixmap is unreachable
---
 src/bin/e_comp_wl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h
index f094c8e..e662634 100644
--- a/src/bin/e_comp_wl.h
+++ b/src/bin/e_comp_wl.h
@@ -316,7 +316,7 @@ e_comp_wl_client_xwayland_data(const E_Client *ec)
 static inline E_Pixmap *
 e_comp_wl_client_xwayland_pixmap(const E_Client *ec)
 {
-   return ((E_Comp_Wl_Client_Data*)ec->comp_data)->xwayland_pixmap;
+   return ec->comp_data ?  
((E_Comp_Wl_Client_Data*)ec->comp_data)->xwayland_pixmap : NULL;
 }
 
 static inline void

-- 


Reply via email to