Elementary Win: make elm_win_xwindow_get works to widget items
authorbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 25 Oct 2011 19:33:42 +0000 (19:33 +0000)
committerbdilly <bdilly@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 25 Oct 2011 19:33:42 +0000 (19:33 +0000)
With that elm test Cursor 2 will work again.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64396 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_win.c

index 4278f3e..2d3237b 100644 (file)
@@ -2638,8 +2638,7 @@ elm_win_xwindow_get(const Evas_Object *obj)
 
    if (!obj) return 0;
    type = elm_widget_type_get(obj);
-   if (!type) return 0;
-   if (type != widtype) return _elm_ee_win_get(obj);
+   if ((!type) || (type != widtype)) return _elm_ee_win_get(obj);
 #ifdef HAVE_ELEMENTARY_X
    win = elm_widget_data_get(obj);
    if (!win) return 0;