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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-07-24 13:50:39 -04:00
parent e741a19b21
commit bd94e8c0b7
1 changed files with 9 additions and 2 deletions

View File

@ -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