ecore_wayland: set a role property while creating cursor surface (2) 13/130413/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 May 2017 08:15:11 +0000 (17:15 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 May 2017 08:15:11 +0000 (17:15 +0900)
Change-Id: I981167e20413dfae5ee17fbd337ad1cc730e9620

src/lib/ecore_wayland/ecore_wl_input.c

index fdff6ce..8b804d4 100644 (file)
@@ -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)