if (sd->wl.win)
ecore_wl2_window_cursor_from_name_set(sd->wl.win, NULL);
+ if (!sd->pointer.obj) return;
ecore_evas_object_cursor_set(sd->ee, sd->pointer.obj,
ELM_OBJECT_LAYER_CURSOR,
sd->pointer.hot_x, sd->pointer.hot_y);
if (!sd) return;
#ifdef HAVE_ELEMENTARY_WL2
+ if (!sd->pointer.obj) return;
sd->pointer.obj = ecore_evas_cursor_unset(sd->ee);
#endif
}
if (sd->wl.win)
ecore_wl2_window_cursor_from_name_set(sd->wl.win, NULL);
- if (!strcmp(source, "elm"))
- _elm_theme_object_set(sd->obj, sd->pointer.obj,
- "pointer", "base", "move");
- else
- _elm_theme_object_set(sd->obj, sd->pointer.obj,
- "pointer", "base", "default");
+ if (sd->pointer.obj)
+ {
+ if (!strcmp(source, "elm"))
+ _elm_theme_object_set(sd->obj, sd->pointer.obj,
+ "pointer", "base", "move");
+ else
+ _elm_theme_object_set(sd->obj, sd->pointer.obj,
+ "pointer", "base", "default");
+ }
#else
(void)source;
#endif
#ifdef HAVE_ELEMENTARY_WL2
if (sd->wl.win)
ecore_wl2_window_cursor_from_name_set(sd->wl.win, NULL);
+ if (!sd->pointer.obj) return;
_elm_theme_object_set(sd->obj, sd->pointer.obj, "pointer", "base", "default");
#endif
}
Evas_Coord mw = 1, mh = 1, hx = 0, hy = 0;
int i;
+ if (!sd->pointer.obj) return;
+
i = sd->rot / 90;
if (!strcmp(source, "elm.event.resize.t"))
_elm_theme_object_set(sd->obj, sd->pointer.obj, "pointer", "base",
if (sd->resizing) return;
#ifdef HAVE_ELEMENTARY_WL2
+ if (!sd->pointer.obj) return;
_elm_theme_object_set(sd->obj, sd->pointer.obj, "pointer", "base", "default");
#endif
}