Evas_Device *dev = NULL;
const char *dev_name;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_mouse_move);
+
ev = event;
e_comp->wl_comp_data->ptr.x = wl_fixed_from_int(ev->cur.canvas.x);
e_comp->wl_comp_data->ptr.y = wl_fixed_from_int(ev->cur.canvas.y);
- if (!(ec = data)) return;
+ if (!(ec = data))
+ {
+ TRACE_END();
+ return;
+ }
- if (ec->cur_mouse_action) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
- if (ec->ignored) return;
- if (!ec->comp_data->surface) return;
+ if (ec->cur_mouse_action)
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
+ if (ec->ignored)
+ {
+ TRACE_END();
+ return;
+ }
+ if (!ec->comp_data->surface)
+ {
+ TRACE_END();
+ return;
+ }
if ((!e_comp_wl->drag_client) ||
(!e_client_has_xwindow(e_comp_wl->drag_client)))
else
e_comp_wl->ptr.hide_tmr = ecore_timer_add(e_config->cursor_timer_interval, _e_comp_wl_cursor_timer, ec);
}
+
+ TRACE_END();
}
static void
Evas_Device *dev = NULL;
const char *dev_name;
- if (!ec) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_mouse_down);
+
+ if (!ec)
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
dev = ev->dev;
else
e_comp_wl_evas_handle_mouse_button(ec, ev->timestamp, ev->button,
WL_POINTER_BUTTON_STATE_PRESSED);
+
+ TRACE_END();
}
static void
Evas_Device *dev = NULL;
const char *dev_name;
- if (!ec) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_mouse_up);
+
+ if (!ec)
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
dev = ev->dev;
else
e_comp_wl_evas_handle_mouse_button(ec, ev->timestamp, ev->button,
WL_POINTER_BUTTON_STATE_RELEASED);
+
+ TRACE_END();
}
static void
Eina_List *l;
uint32_t axis, dir;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_mouse_wheel);
+
ev = event;
- if (!(ec = data)) return;
- if (ec->cur_mouse_action) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
+ if (!(ec = data))
+ {
+ TRACE_END();
+ return;
+ }
+ if (ec->cur_mouse_action)
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
if (ec->ignored) return;
+ {
+ TRACE_END();
+ return;
+ }
if (ev->direction == 0)
axis = WL_POINTER_AXIS_VERTICAL_SCROLL;
else
dir = wl_fixed_from_int(ev->z);
- if (!ec->comp_data->surface) return;
+ if (!ec->comp_data->surface)
+ {
+ TRACE_END();
+ return;
+ }
- if (ec->comp_data->transform.start) return;
+ if (ec->comp_data->transform.start)
+ {
+ TRACE_END();
+ return;
+ }
if (ec->comp_data->transform.enabled)
{
if (ec->comp_data->transform.stime == 0)
{
ec->comp_data->transform.stime = ev->timestamp;
+ TRACE_END();
return;
}
}
/* do not send wheel event to client */
+ TRACE_END();
return;
}
if (wl_resource_get_client(res) != wc) continue;
wl_pointer_send_axis(res, ev->timestamp, axis, dir);
}
+
+ TRACE_END();
}
static void
const char *dev_name;
Evas_Device_Class dev_class;
- if (!ec) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
- if (!ec->comp_data->surface) return;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_multi_down);
+
+ if (!ec)
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
+ if (!ec->comp_data->surface)
+ {
+ TRACE_END();
+ return;
+ }
dev = ev->dev;
}
/* Do not deliver emulated single touch events to client */
- if (ev->device == 0) return;
+ if (ev->device == 0)
+ {
+ TRACE_END();
+ return;
+ }
wc = wl_resource_get_client(ec->comp_data->surface);
serial = wl_display_next_serial(e_comp_wl->wl.disp);
wl_touch_send_down(res, serial, ev->timestamp,
ec->comp_data->surface, ev->device, x, y);
}
+
+ TRACE_END();
}
static void
const char *dev_name;
Evas_Device_Class dev_class;
- if (!ec) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
- if (!ec->comp_data->surface) return;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_multi_up);
+
+ if (!ec)
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
+ if (!ec->comp_data->surface)
+ {
+ TRACE_END();
+ return;
+ }
dev = ev->dev;
}
/* Do not deliver emulated single touch events to client */
- if (ev->device == 0) return;
+ if (ev->device == 0)
+ {
+ TRACE_END();
+ return;
+ }
wc = wl_resource_get_client(ec->comp_data->surface);
serial = wl_display_next_serial(e_comp_wl->wl.disp);
if (!e_comp_wl_input_touch_check(res)) continue;
wl_touch_send_up(res, serial, ev->timestamp, ev->device);
}
+
+ TRACE_END();
}
static void
const char *dev_name;
Evas_Device_Class dev_class;
+ TRACE_BEGIN(_e_comp_wl_evas_cb_multi_move);
+
if (!ec) return;
- if (e_object_is_del(E_OBJECT(ec))) return;
- if (!ec->comp_data->surface) return;
+ {
+ TRACE_END();
+ return;
+ }
+ if (e_object_is_del(E_OBJECT(ec)))
+ {
+ TRACE_END();
+ return;
+ }
+ if (!ec->comp_data->surface)
+ {
+ TRACE_END();
+ return;
+ }
dev = ev->dev;
}
/* Do not deliver emulated single touch events to client */
- if (ev->device == 0) return;
+ if (ev->device == 0)
+ {
+ TRACE_END();
+ return;
+ }
wc = wl_resource_get_client(ec->comp_data->surface);
if (!e_comp_wl_input_touch_check(res)) continue;
wl_touch_send_motion(res, ev->timestamp, ev->device, x, y);
}
+
+ TRACE_END();
}
static void
E_Client *ec = NULL;
uint32_t serial, *end, *k, keycode;
- if ((e_comp->comp_type != E_PIXMAP_TYPE_WL) || (ev->window != e_comp->ee_win)) return EINA_FALSE;
+ TRACE_BEGIN(e_comp_wl_key_down);
+
+ if ((e_comp->comp_type != E_PIXMAP_TYPE_WL) || (ev->window != e_comp->ee_win))
+ {
+ TRACE_END();
+ return EINA_FALSE;
+ }
_last_event_time = ecore_loop_time_get();
keycode = (ev->keycode - 8);
- if (!(e_comp_wl = e_comp->wl_comp_data)) return EINA_FALSE;
+ if (!(e_comp_wl = e_comp->wl_comp_data))
+ {
+ TRACE_END();
+ return EINA_FALSE;
+ }
#ifndef E_RELEASE_BUILD
if ((ev->modifiers & ECORE_EVENT_MODIFIER_CTRL) &&
((ev->modifiers & ECORE_EVENT_MODIFIER_ALT) ||
(ev->modifiers & ECORE_EVENT_MODIFIER_ALTGR)) &&
eina_streq(ev->key, "BackSpace"))
- exit(0);
+ {
+ TRACE_END();
+ exit(0);
+ }
#endif
end = (uint32_t *)e_comp_wl->kbd.keys.data + (e_comp_wl->kbd.keys.size / sizeof(*k));
for (k = e_comp_wl->kbd.keys.data; k < end; k++)
{
/* ignore server-generated key repeats */
- if (*k == keycode) return EINA_FALSE;
+ if (*k == keycode)
+ {
+ TRACE_END();
+ return EINA_FALSE;
+ }
}
if ((!e_client_action_get()) && (!e_comp->input_key_grabs) &&
if (!(k = wl_array_add(&e_comp_wl->kbd.keys, sizeof(*k))))
{
DBG("wl_array_add: Out of memory\n");
+ TRACE_END();
return EINA_FALSE;
}
*k = keycode;
/* update modifier state */
e_comp_wl_input_keyboard_state_update(keycode, EINA_TRUE);
+
+ TRACE_END();
return !!ec;
}
Eina_List *l;
uint32_t delivered_key;
+ TRACE_BEGIN(e_comp_wl_key_up);
if ((e_comp->comp_type != E_PIXMAP_TYPE_WL) ||
- (ev->window != e_comp->ee_win)) return EINA_FALSE;
+ (ev->window != e_comp->ee_win))
+ {
+ TRACE_END();
+ return EINA_FALSE;
+ }
_last_event_time = ecore_loop_time_get();
keycode = (ev->keycode - 8);
delivered_key = 0;
- if (!(e_comp_wl = e_comp->wl_comp_data)) return EINA_FALSE;
+ if (!(e_comp_wl = e_comp->wl_comp_data))
+ {
+ TRACE_END();
+ return EINA_FALSE;
+ }
end = (uint32_t *)e_comp_wl->kbd.keys.data + (e_comp_wl->kbd.keys.size / sizeof(*k));
for (k = e_comp_wl->kbd.keys.data; k < end; k++)
/* update modifier state */
e_comp_wl_input_keyboard_state_update(keycode, EINA_FALSE);
+
+ TRACE_END();
return !!ec;
}