forked from enlightenment/efl
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:
parent
82249b5b50
commit
ade7482ee2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue