wl_compositor_destroy(_ecore_wl_disp->wl.compositor);
if (_ecore_wl_disp->wl.subcompositor)
wl_subcompositor_destroy(_ecore_wl_disp->wl.subcompositor);
+ if (_ecore_wl_disp->cursor_theme)
+ wl_cursor_theme_destroy(_ecore_wl_disp->cursor_theme);
if (_ecore_wl_disp->wl.display)
{
wl_registry_destroy(_ecore_wl_disp->wl.registry);
if (ewd->input)
_ecore_wl_input_setup(ewd->input);
- else
+ else if (!ewd->cursor_theme)
{
ewd->cursor_theme =
wl_cursor_theme_load(NULL, ECORE_WL_DEFAULT_CURSOR_SIZE,
EINA_SAFETY_ON_NULL_RETURN(input->display->wl.shm);
+ if (input->display->cursor_theme)
+ wl_cursor_theme_destroy(input->display->cursor_theme);
input->display->cursor_theme =
wl_cursor_theme_load(NULL, input->cursor_size, input->display->wl.shm);
}
EINA_SAFETY_ON_NULL_RETURN(input->display->wl.shm);
+ if (input->display->cursor_theme)
+ wl_cursor_theme_destroy(input->display->cursor_theme);
input->display->cursor_theme =
wl_cursor_theme_load(input->cursor_theme_name, input->cursor_size,
input->display->wl.shm);