int cx = 0, cy = 0;
zone = e_zone_current_get();
+ if (!zone) return -1;
+
desk = e_desk_current_get(zone);
+ if (!desk) return -1;
e_desk_zoom_get(desk, &zoomx, &zoomy, &cx, &cy);
if (zoomx > 1.0 || zoomy > 1.0)
E_Client *client = e_client_under_position_get(desk, gi->x_beg, gi->y_beg, NULL);
+ if (!client) return -1;
uint32_t resID = e_pixmap_res_id_get(client->pixmap);
// Ensure that there is at least one 'ongoing' signal before 'end' in two-finger hover
void app_gesture_support (char *msg)
{
- if (!strcmp(msg, "all"))
+ if (!e_util_strcmp(msg, "all"))
{
app_support_gestures = EINA_TRUE;
DEBUG("App support all gestures");
for (k = 0; k < GESTURES_COUNT; ++k)
gestures_supported_by_app [k] = EINA_FALSE;
- if (!strcmp(msg, ""))
+ if (!e_util_strcmp(msg, ""))
{
DEBUG("App support none gestures");
return;
int i;
for (i = 0; i < n; ++i) {
for (k = 0; k < GESTURES_COUNT; ++k)
- if (strcmp(list[i], gesture_enum_to_string(k)) == 0) {
+ if (e_util_strcmp(list[i], gesture_enum_to_string(k)) == 0) {
gestures_supported_by_app[k] = EINA_TRUE;
break;
}
{
ERROR("Abort gesture");
cov->tap_gesture_data.started = EINA_FALSE;
- ecore_timer_del(cov->tap_gesture_data.timer);
+ if (cov->tap_gesture_data.timer)
+ ecore_timer_del(cov->tap_gesture_data.timer);
cov->tap_gesture_data.timer = NULL;
cov->tap_gesture_data.tap_type = ONE_FINGER_GESTURE;
cov->tap_gesture_data.finger[0] = -1;
ERROR("Abort tap gesture");
if (cov->n_taps == 2) scrolling = EINA_TRUE;
cov->tap_gesture_data.started = EINA_FALSE;
- ecore_timer_del(cov->tap_gesture_data.timer);
+ if (cov->tap_gesture_data.timer)
+ ecore_timer_del(cov->tap_gesture_data.timer);
cov->tap_gesture_data.timer = NULL;
cov->tap_gesture_data.tap_type = ONE_FINGER_GESTURE;
cov->tap_gesture_data.finger[0] = -1;
{
if (cover->tap_gesture_data.timer)
ecore_timer_del(cover->tap_gesture_data.timer);
+ cover->tap_gesture_data.timer = NULL;
if (cover->hover_gesture.timer)
ecore_timer_del(cover->hover_gesture.timer);
+ cover->hover_gesture.timer = NULL;
if (cover->up_timer)
ecore_timer_del(cover->up_timer);
cover->up_timer = NULL;
int uncaught_keys_size = sizeof(uncaught_keys) / sizeof(uncaught_keys[0]);
for (int i = 0; i < uncaught_keys_size; ++i)
- if (strcmp(uncaught_keys[i], key) == 0)
+ if (e_util_strcmp(uncaught_keys[i], key) == 0)
return EINA_FALSE;
return EINA_TRUE;
Ecore_Event_Key *ev = event;
- if (strcmp(ev->key, back_button_code) != 0)
+ if (e_util_strcmp(ev->key, back_button_code) != 0)
return EINA_TRUE;
if (type == ECORE_EVENT_KEY_DOWN)