forked from enlightenment/efl
elementary: Don't call ecore_wl2_shutdown unless we have a display
During _elm_config_sub_shutdown we were explicitly calling ecore_wl2_shutdown. We should only be doing this if we are actually in a wayland environment. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
7728ab47c0
commit
605823be21
|
@ -3327,8 +3327,11 @@ _elm_config_sub_shutdown(void)
|
|||
if (ecore_x_display_get()) ecore_x_shutdown();
|
||||
#endif
|
||||
#ifdef HAVE_ELEMENTARY_WL2
|
||||
if (_elm_wl_display) ecore_wl2_display_disconnect(_elm_wl_display);
|
||||
ecore_wl2_shutdown();
|
||||
if (_elm_wl_display)
|
||||
{
|
||||
ecore_wl2_display_disconnect(_elm_wl_display);
|
||||
ecore_wl2_shutdown();
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_ELEMENTARY_WIN32
|
||||
ecore_win32_shutdown();
|
||||
|
|
Loading…
Reference in New Issue