devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=c8d2086175383b4c1103ef307d1ee85a26d547b0
commit c8d2086175383b4c1103ef307d1ee85a26d547b0 Author: Chris Michael <[email protected]> Date: Thu Jul 24 13:50:39 2014 -0400 elementary: Fix segfault when running elm apps under wayland Don't call ecore_x functions unless we are running under an X11-compatible engine, else we get segfaults in elm_apps. Signed-off-by: Chris Michael <[email protected]> --- src/lib/elm_win.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 28c3e77..abcf482 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -328,8 +328,15 @@ _win_noblank_eval(void) noblanks++; } } - if (noblanks > 0) ecore_x_screensaver_supend(); - else ecore_x_screensaver_resume(); + + if (ENGINE_COMPARE(ELM_SOFTWARE_X11) || + ENGINE_COMPARE(ELM_SOFTWARE_16_X11) || + ENGINE_COMPARE(ELM_XRENDER_X11) || ENGINE_COMPARE(ELM_OPENGL_X11) || + ENGINE_COMPARE(ELM_OPENGL_COCOA) || ENGINE_COMPARE(ELM_SOFTWARE_WIN32)) + { + if (noblanks > 0) ecore_x_screensaver_supend(); + else ecore_x_screensaver_resume(); + } #endif #ifdef HAVE_ELEMENTARY_WAYLAND // XXX: no wl implementation of this yet - maybe higher up at prop level --
