summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-01-16 10:35:06 -0500
committerChris Michael <cp.michael@samsung.com>2015-01-16 10:35:06 -0500
commitade7482ee2336d4016ffe17d8569a1b0bb261c70 (patch)
treeb837b7e3df0d16a0bc2b33c43bfe4372c190f04d /src/lib/ecore_wayland
parent82249b5b50d9640ed1ebd363cf3cca92f5bcb255 (diff)
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>
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 55c7097..1db8ed0 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -706,7 +706,7 @@ ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, const char *cursor_na
706 706
707 eina_stringshare_replace(&win->cursor_name, cursor_name); 707 eina_stringshare_replace(&win->cursor_name, cursor_name);
708 708
709 if (strcmp(input->cursor_name, win->cursor_name)) 709 if ((input->cursor_name) && (strcmp(input->cursor_name, win->cursor_name)))
710 ecore_wl_input_cursor_from_name_set(input, cursor_name); 710 ecore_wl_input_cursor_from_name_set(input, cursor_name);
711} 711}
712 712