win: Don't call ecore_x_screensaver APIs if elm win doesn't have X11 window
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 7 Aug 2014 14:19:24 +0000 (10:19 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 7 Aug 2014 14:19:24 +0000 (10:19 -0400)
commitceecd67d648bf5df9f9f3e877847f26d3b07477c
tree761cf242cad388f4ca58a0ca5e87106653934323
parente57a00da5340124677b4c2d8f18dab5639704890
win: Don't call ecore_x_screensaver APIs if elm win doesn't have X11 window

Summary:
Elementary application crashes on startup when it is running with
wayland engine. This crash problem happens while ecore_x_screensaver API
is being called from _win_noblank_eval funcion. Thus we should not call
ecore_x_screensaver APIs if elm win doesn't have X11 window.

Test Plan:
1. build efl and elementary to support x11 and also wayland
1. run weston without xwayland
2. run elementary_test on the weston

Reviewers: raster, seoz, stefan_schmidt, devilhorns

Differential Revision: https://phab.enlightenment.org/D1293
src/lib/elm_win.c