ecore-wayland: Don't crash if we have no shm interface yet when

setting cursor theme

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-09-18 11:57:24 -04:00
parent eefabe1abe
commit 026b1e9dc5
1 changed files with 3 additions and 0 deletions

View File

@ -232,6 +232,9 @@ ecore_wl_input_cursor_theme_name_set(Ecore_Wl_Input *input, const char *cursor_t
if (!input) return;
input->cursor_theme_name = cursor_theme_name;
EINA_SAFETY_ON_NULL_RETURN(input->display->wl.shm);
input->display->cursor_theme =
wl_cursor_theme_load(input->cursor_theme_name, input->cursor_size,
input->display->wl.shm);