desklock: Fix T2589: Screen Lock crashes in E

Don't call ecore_x functions unless we are using an X11 compositor.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-07-21 09:03:59 -04:00
parent 3c3f0845f3
commit e78abc23c1
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ _fill_data(E_Config_Dialog_Data *cfdata)
cfdata->bg_method_prev = cfdata->bg_method;
#ifndef HAVE_WAYLAND_ONLY
cfdata->use_xscreensaver = ecore_x_screensaver_event_available_get();
if (e_comp->comp_type == E_PIXMAP_TYPE_X)
cfdata->use_xscreensaver = ecore_x_screensaver_event_available_get();
#endif
cfdata->desklock_auth_method = e_config->desklock_auth_method;