return 0 for client util window_get inlines if no pixmap available

This commit is contained in:
Mike Blumenkrantz 2014-01-24 17:28:32 -05:00
parent 57903b7aa3
commit 03accb7525
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}