elementary: Restart default cursor for wayland windows
authorChris Michael <cp.michael@samsung.com>
Thu, 26 Feb 2015 15:22:04 +0000 (10:22 -0500)
committerChris Michael <cp.michael@samsung.com>
Thu, 26 Feb 2015 15:22:04 +0000 (10:22 -0500)
Summary: If we are unsetting the cursor for an object, then if it's an
object on a wayland window, we should be callbacking
ecore_wl_window_cursor_default_restore

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/els_cursor.c

index d424324..dd17984 100644 (file)
@@ -503,6 +503,10 @@ elm_object_cursor_unset(Evas_Object *obj)
         else if (cur->x.win)
           ecore_x_window_cursor_set(cur->x.win, ECORE_X_CURSOR_X);
 #endif
+#ifdef HAVE_ELEMENTARY_WAYLAND
+        else if (cur->wl.win)
+          ecore_wl_window_cursor_default_restore(cur->wl.win);
+#endif
      }
 
    evas_object_event_callback_del_full(obj, EVAS_CALLBACK_MOUSE_IN,