inwin_example: shot can never be the preferend engine
Summary: "shot" is just the content from ELM_DISPLAY, but never the prefered engine. Additionally, prefered engine can be NULL, which will cause a SEGV. This now just uses the getenv to check if we run in the shot engine. Depends on D8376 Reviewers: cedric, segfaultxavi, zmike, stefan_schmidt Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8377
This commit is contained in:
parent
d0f32d21c3
commit
ff3d378334
|
@ -134,7 +134,7 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
|
||||
evas_object_smart_callback_add(o, "clicked", _btn_click_cb, NULL);
|
||||
|
||||
if (!strncmp(elm_config_preferred_engine_get(), "shot", 4))
|
||||
if (eina_streq(getenv("ELM_ENGINE"), "shot"))
|
||||
ecore_timer_add(0.1, _screenshot_hack_cb, o);
|
||||
|
||||
evas_object_resize(win, 400, 400);
|
||||
|
|
Loading…
Reference in New Issue