ecore-wayland: Don't crash if we have no input->cursor_name

Summary: If we are using a touchscreen, there will be no pointer and
thus no cursor_name to use. Trap for that case by checking if
input->cursor_name is valid.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-01-16 10:35:06 -05:00
parent 82249b5b50
commit ade7482ee2
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, const char *cursor_na
eina_stringshare_replace(&win->cursor_name, cursor_name);
if (strcmp(input->cursor_name, win->cursor_name))
if ((input->cursor_name) && (strcmp(input->cursor_name, win->cursor_name)))
ecore_wl_input_cursor_from_name_set(input, cursor_name);
}