Elm: Commit roberts patch which fixes the unsafe call to
ecore_evas_window_get with a replacement function that checks the currently used engine first. This fixes a segfault when running elm with the wayland engines. SVN revision: 73568
This commit is contained in:
parent
95effacb99
commit
e7aff2633f
|
@ -442,7 +442,7 @@ _elm_widget_xwin_get(const Evas_Object *obj)
|
|||
if (!evas) return 0;
|
||||
ee = ecore_evas_ecore_evas_get(evas);
|
||||
if (!ee) return 0;
|
||||
xwin = (Ecore_X_Window)ecore_evas_window_get(ee);
|
||||
xwin = _elm_ee_xwin_get(ee);
|
||||
}
|
||||
|
||||
return xwin;
|
||||
|
|
|
@ -232,6 +232,8 @@ void _elm_win_rescale(Elm_Theme *th, Eina_Bool use_theme);
|
|||
void _elm_win_access(Eina_Bool is_access);
|
||||
void _elm_win_translate(void);
|
||||
|
||||
Ecore_X_Window _elm_ee_xwin_get(const Ecore_Evas *ee);
|
||||
|
||||
Eina_Bool _elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, const char *group, const char *style);
|
||||
Eina_Bool _elm_theme_object_icon_set(Evas_Object *o, const char *group, const char *style);
|
||||
Eina_Bool _elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *group, const char *style);
|
||||
|
|
|
@ -1266,7 +1266,7 @@ _elm_win_delete_request(Ecore_Evas *ee)
|
|||
evas_object_unref(obj);
|
||||
}
|
||||
|
||||
static Ecore_X_Window
|
||||
Ecore_X_Window
|
||||
_elm_ee_xwin_get(const Ecore_Evas *ee)
|
||||
{
|
||||
#ifdef HAVE_ELEMENTARY_X
|
||||
|
|
Loading…
Reference in New Issue