discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=03accb752567057d63a20da58646728597e96564

commit 03accb752567057d63a20da58646728597e96564
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jan 24 17:28:32 2014 -0500

    return 0 for client util window_get inlines if no pixmap available
---
 src/bin/e_client.x | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_client.x b/src/bin/e_client.x
index 1ea32b4..57e49d2 100644
--- a/src/bin/e_client.x
+++ b/src/bin/e_client.x
@@ -82,12 +82,14 @@ e_client_util_desk_visible(const E_Client *ec, const E_Desk 
*desk)
 static inline Ecore_Window
 e_client_util_pwin_get(const E_Client *ec)
 {
+   if (!ec->pixmap) return 0;
    return e_pixmap_parent_window_get(ec->pixmap);
 }
 
 static inline Ecore_Window
 e_client_util_win_get(const E_Client *ec)
 {
+   if (!ec->pixmap) return 0;
    return e_pixmap_window_get(ec->pixmap);
 }
 

-- 


Reply via email to