aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-07-24 13:50:39 -0400
committerChris Michael <cp.michael@samsung.com>2014-07-24 14:09:06 -0400
commitbd94e8c0b791c3bc24701730a674c05be540aa83 (patch)
tree7cfded23eca098175df06ab6050573ba648da4e7 /legacy/elementary/src/lib/elm_win.c
parentfix genlist/grid search item patch to be simpler and just better (diff)
downloadefl-bd94e8c0b791c3bc24701730a674c05be540aa83.tar.gz
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>
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 28c3e77dcb..abcf482dba 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/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