From 69fc261fd376cc0124020c8a4309e5e945128fca Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Mon, 22 May 2017 17:15:11 +0900 Subject: [PATCH] ecore_wayland: set a role property while creating cursor surface (2) Change-Id: I981167e20413dfae5ee17fbd337ad1cc730e9620 --- src/lib/ecore_wayland/ecore_wl_input.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index fdff6ce..8b804d4 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -670,13 +670,14 @@ _ecore_wl_input_seat_handle_capabilities(void *data, struct wl_seat *seat, enum { input->cursor_surface = wl_compositor_create_surface(_ecore_wl_disp->wl.compositor); - } - if (_ecore_wl_disp->wl.tz_policy) - { + if (input->cursor_surface) { - tizen_policy_set_role(_ecore_wl_disp->wl.tz_policy, - input->cursor_surface, "wl_pointer-cursor"); + if (_ecore_wl_disp->wl.tz_policy) + { + tizen_policy_set_role(_ecore_wl_disp->wl.tz_policy, + input->cursor_surface, "wl_pointer-cursor"); + } } } if (!input->display->cursor_theme) -- 2.7.4