This fixes the issue with the shot module, and possibly when
running on other non-X engines when elementary is built with X support.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61287
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
Ecore_X_Window xwin;
Eina_List *item;
int first;
+ Evas_Object *top;
if (!obj) return EINA_FALSE;
+ top = elm_widget_top_get(obj);
+ if (!top || !elm_win_xwindow_get(top)) return EINA_FALSE;
if (!_elm_cnp_init_count) _elm_cnp_init();
/* Is this the first? */