{
Ecore_Event_Device_Info *e;
E_Comp *comp = data;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
if (!(e = event)) goto end;
ELOGF("COMP_SCREEN", "Input Device Add. name:%s(%s), seat:%s", NULL, e->name, e->identifier, e->seatname);
}
static void
-_e_comp_screen_pointer_renew(E_Comp_Wl_Seat *seat)
+_e_comp_screen_pointer_renew(E_Seat *seat)
{
E_Comp_Wl_Data *comp_wl;
{
Ecore_Event_Device_Info *e;
E_Comp *comp = data;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
if (!(e = event)) goto end;
ELOGF("COMP_SCREEN", "Input Device Del. name:%s(%s), seat:%s", NULL, e->name, e->identifier, e->seatname);
static Eina_Bool _e_comp_wl_cursor_timer_control(Evas_Callback_Type type, E_Comp_Wl_Data *comp_wl, E_Client *ec);
static void _e_comp_wl_surface_state_serial_update(E_Client *ec, E_Comp_Wl_Surface_State *state);
-static void _e_comp_wl_seat_pointer_send_axis(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+static void _e_comp_wl_seat_pointer_send_axis(E_Seat *seat, struct wl_client *wc,
uint32_t axis, uint32_t dir, uint32_t timestamp);
-static void _e_comp_wl_seat_touch_send_cancel(E_Comp_Wl_Seat *seat, struct wl_client *wc, E_Client *ec);
-static void _e_comp_wl_seat_touch_send_frame(E_Comp_Wl_Seat *seat, struct wl_client *wc);
+static void _e_comp_wl_seat_touch_send_cancel(E_Seat *seat, struct wl_client *wc, E_Client *ec);
+static void _e_comp_wl_seat_touch_send_frame(E_Seat *seat, struct wl_client *wc);
/* local variables */
typedef struct _E_Comp_Wl_Key_Data
}
static void
-_e_comp_wl_seat_touch_send_cancel(E_Comp_Wl_Seat *seat, struct wl_client *wc, E_Client *ec)
+_e_comp_wl_seat_touch_send_cancel(E_Seat *seat, struct wl_client *wc, E_Client *ec)
{
Eina_List *l, *ll;
struct wl_resource *res;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
if (!seat) goto iterate;
}
static void
-_e_comp_wl_seat_touch_send_frame(E_Comp_Wl_Seat *seat, struct wl_client *wc)
+_e_comp_wl_seat_touch_send_frame(E_Seat *seat, struct wl_client *wc)
{
Eina_List *l, *ll;
struct wl_resource *res;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
if (!seat) goto iterate;
}
EINTERN void
-e_comp_wl_seat_touch_send_downup(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+e_comp_wl_seat_touch_send_downup(E_Seat *seat, struct wl_client *wc,
struct wl_resource *surface, int idx, int x, int y, uint32_t timestamp,
Eina_Bool pressed)
{
struct wl_resource *res;
uint32_t serial;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
serial = wl_display_next_serial(comp_wl->wl.disp);
}
EINTERN void
-e_comp_wl_seat_touch_send_motion(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+e_comp_wl_seat_touch_send_motion(E_Seat *seat, struct wl_client *wc,
int idx, int x, int y, uint32_t timestamp)
{
Eina_List *l, *ll;
struct wl_resource *res;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
if (!seat) goto iterate;
}
EINTERN void
-e_comp_wl_seat_pointer_send_enter(E_Comp_Wl_Seat *seat, struct wl_client *wc, E_Client *ec,
+e_comp_wl_seat_pointer_send_enter(E_Seat *seat, struct wl_client *wc, E_Client *ec,
struct wl_resource *surface, int x, int y)
{
Eina_List *l, *ll;
struct wl_resource *res;
uint32_t serial;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
serial = wl_display_next_serial(comp_wl->wl.disp);
}
EINTERN void
-e_comp_wl_seat_pointer_send_leave(E_Comp_Wl_Seat *seat, struct wl_client *wc, E_Client *ec,
+e_comp_wl_seat_pointer_send_leave(E_Seat *seat, struct wl_client *wc, E_Client *ec,
struct wl_resource *surface)
{
Eina_List *l, *ll;
struct wl_resource *res;
uint32_t serial;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
serial = wl_display_next_serial(comp_wl->wl.disp);
}
EINTERN void
-e_comp_wl_seat_pointer_send_motion(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+e_comp_wl_seat_pointer_send_motion(E_Seat *seat, struct wl_client *wc,
int x, int y, uint32_t timestamp)
{
Eina_List *l, *ll;
struct wl_resource *res;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
if (!seat) goto iterate;
}
EINTERN void
-e_comp_wl_seat_pointer_send_button(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+e_comp_wl_seat_pointer_send_button(E_Seat *seat, struct wl_client *wc,
uint32_t button, uint32_t state, uint32_t timestamp)
{
Eina_List *l, *ll;
struct wl_resource *res;
uint32_t serial;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
serial = wl_display_next_serial(comp_wl->wl.disp);
}
static void
-_e_comp_wl_seat_pointer_send_axis(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+_e_comp_wl_seat_pointer_send_axis(E_Seat *seat, struct wl_client *wc,
uint32_t axis, uint32_t dir, uint32_t timestamp)
{
Eina_List *l, *ll;
struct wl_resource *res;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *s;
+ E_Seat *s;
if (!seat) goto iterate;
wl_fixed_t fy);
static void
-_e_comp_wl_input_update_seat_caps(E_Comp_Wl_Seat *seat, struct wl_client *wc)
+_e_comp_wl_input_update_seat_caps(E_Seat *seat, struct wl_client *wc)
{
Eina_List *l;
struct wl_resource *res;
Eina_Bool got_mouse = EINA_FALSE;
struct wl_resource *surface;
E_Pointer *comp_pointer = e_comp_pointer_get();
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = wl_resource_get_user_data(resource);
if (!seat) return;
_e_comp_wl_input_cb_pointer_unbind(struct wl_resource *resource)
{
E_Comp_Wl_Data *comp_wl;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = wl_resource_get_user_data(resource);
if (!seat) return;
struct wl_client *ptr_client = NULL;
E_Comp_Wl_Client_Data *cdata = NULL;
E_Comp_Wl_Data *comp_wl;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = wl_resource_get_user_data(resource);
if (!seat) return;
static void
_e_comp_wl_input_cb_touch_unbind(struct wl_resource *resource)
{
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = wl_resource_get_user_data(resource);
if (!seat) return;
_e_comp_wl_input_cb_touch_get(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t id EINA_UNUSED)
{
struct wl_resource *res;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = wl_resource_get_user_data(resource);
if (!seat) return;
static void
_e_comp_wl_input_cb_unbind_seat(struct wl_resource *resource)
{
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = wl_resource_get_user_data(resource);
if (!seat) return;
_e_comp_wl_input_cb_bind_seat(struct wl_client *client, void *data, uint32_t version, uint32_t id)
{
struct wl_resource *res;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
if (!(seat = data)) return;
static Eina_Bool
_e_comp_wl_input_seat_init(const char *seat_name)
{
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
seat = e_comp_wl_input_seat_get(seat_name);
if (seat) return EINA_FALSE;
- if (!(seat = E_NEW(E_Comp_Wl_Seat, 1))) return EINA_FALSE;
+ if (!(seat = E_NEW(E_Seat, 1))) return EINA_FALSE;
/* set default seat name */
if (!seat_name)
wl_global_destroy(comp_wl->ptr_constraints.global);
comp_wl->ptr_constraints.global = NULL;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
EINA_LIST_FREE(comp_wl->seats, seat)
{
EINA_LIST_FREE(seat->ptr.resources, res)
}
EINTERN void
-e_comp_wl_input_pointer_enabled_set(E_Comp_Wl_Seat *seat, Eina_Bool enabled)
+e_comp_wl_input_pointer_enabled_set(E_Seat *seat, Eina_Bool enabled)
{
if (!seat) return;
}
EINTERN void
-e_comp_wl_input_touch_enabled_set(E_Comp_Wl_Seat *seat, Eina_Bool enabled)
+e_comp_wl_input_touch_enabled_set(E_Seat *seat, Eina_Bool enabled)
{
if (!seat) return;
e_comp_wl_input_seat_caps_set(unsigned int caps)
{
Eina_Bool need_update = EINA_FALSE;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = e_comp_wl_input_seat_get("default");
g_rec_mutex_unlock(&e_comp_input_key->kbd.resources_mutex);
}
-EINTERN E_Comp_Wl_Seat *
+EINTERN E_Seat *
e_comp_wl_input_seat_get(const char *name)
{
Eina_List *l;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
EINA_LIST_FOREACH(comp_wl->seats, l, seat)
}
EINTERN Eina_Bool
-e_comp_wl_input_seat_pointer_is_empty(E_Comp_Wl_Seat *seat)
+e_comp_wl_input_seat_pointer_is_empty(E_Seat *seat)
{
if (!seat) goto iterate;
}
EINTERN Eina_Bool
-e_comp_wl_input_seat_touch_is_empty(E_Comp_Wl_Seat *seat)
+e_comp_wl_input_seat_touch_is_empty(E_Seat *seat)
{
if (!seat) goto iterate;
}
EINTERN Eina_Bool
-e_comp_wl_input_seat_pointer_enabled_get(E_Comp_Wl_Seat *seat)
+e_comp_wl_input_seat_pointer_enabled_get(E_Seat *seat)
{
if (!seat) goto iterate;
EINTERN Eina_Bool e_comp_wl_input_relative_pointer_check(struct wl_resource *res);
EINTERN Eina_Bool e_comp_wl_input_pointer_check(struct wl_resource *res);
-EINTERN void e_comp_wl_input_pointer_enabled_set(E_Comp_Wl_Seat *seat, Eina_Bool enabled);
+EINTERN void e_comp_wl_input_pointer_enabled_set(E_Seat *seat, Eina_Bool enabled);
EINTERN Eina_Bool e_comp_wl_input_touch_check(struct wl_resource *res);
-EINTERN void e_comp_wl_input_touch_enabled_set(E_Comp_Wl_Seat *seat, Eina_Bool enabled);
+EINTERN void e_comp_wl_input_touch_enabled_set(E_Seat *seat, Eina_Bool enabled);
EINTERN Eina_Bool e_comp_wl_input_keyboard_check(struct wl_resource *res);
EINTERN Eina_Bool e_comp_wl_input_keyboard_modifiers_serialize(void);
EINTERN void e_comp_wl_input_keymap_init(void);
-EINTERN E_Comp_Wl_Seat *e_comp_wl_input_seat_get(const char *name);
-EINTERN Eina_Bool e_comp_wl_input_seat_pointer_is_empty(E_Comp_Wl_Seat *seat);
-EINTERN Eina_Bool e_comp_wl_input_seat_touch_is_empty(E_Comp_Wl_Seat *seat);
-EINTERN Eina_Bool e_comp_wl_input_seat_pointer_enabled_get(E_Comp_Wl_Seat *seat);
+EINTERN E_Seat *e_comp_wl_input_seat_get(const char *name);
+EINTERN Eina_Bool e_comp_wl_input_seat_pointer_is_empty(E_Seat *seat);
+EINTERN Eina_Bool e_comp_wl_input_seat_touch_is_empty(E_Seat *seat);
+EINTERN Eina_Bool e_comp_wl_input_seat_pointer_enabled_get(E_Seat *seat);
#endif
}
static void
-_e_comp_wl_input_thread_send_mouse_in(E_Comp_Wl_Seat *seat, E_Input_Thread_Client *iec, int x, int y, int client_x, int client_y, int timestamp)
+_e_comp_wl_input_thread_send_mouse_in(E_Seat *seat, E_Input_Thread_Client *iec, int x, int y, int client_x, int client_y, int timestamp)
{
struct wl_client *wc;
struct wl_resource *surface;
}
static void
-_e_comp_wl_input_thread_send_mouse_out(E_Comp_Wl_Seat *seat, E_Input_Thread_Client *iec, int timestamp)
+_e_comp_wl_input_thread_send_mouse_out(E_Seat *seat, E_Input_Thread_Client *iec, int timestamp)
{
struct wl_client *wc;
struct wl_resource *surface;
}
static void
-_e_comp_wl_input_thread_check_mouse_out(E_Comp_Wl_Seat *seat, E_Input_Thread_Client *hit_iec, int timestamp)
+_e_comp_wl_input_thread_check_mouse_out(E_Seat *seat, E_Input_Thread_Client *hit_iec, int timestamp)
{
E_Input_Thread_Client *iec = NULL;
for (iec = e_input_thread_client_top_get(); iec; iec = e_input_thread_client_below_get(iec))
E_Comp_Wl_Data *comp_wl;
struct wl_resource *surface;
struct wl_client *wc;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
comp_wl = e_comp_wl_get();
comp_wl->ptr.x = wl_fixed_from_int(ev->x);
struct wl_resource *surface = NULL;
E_Comp_Wl_Data *comp_wl;
struct wl_client *wc;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
uint32_t btn;
ELOGF("Mouse", "E Event Mouse Down (time: %d, x:%d y:%d)", NULL, ev->timestamp, ev->x, ev->y);
int client_x = 0, client_y = 0;
E_Comp_Wl_Data *comp_wl;
struct wl_client *wc;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
uint32_t btn;
if (!need_send_released)
EINTERN E_Devicemgr_Input_Device *e_comp_wl_device_last_device_get(Ecore_Device_Class dev_class);
EINTERN void e_comp_wl_device_last_device_set(Ecore_Device_Class dev_class, E_Devicemgr_Input_Device *device);
-EINTERN void e_comp_wl_seat_touch_send_motion(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+EINTERN void e_comp_wl_seat_touch_send_motion(E_Seat *seat, struct wl_client *wc,
int idx, int x, int y, uint32_t timestamp);
-EINTERN void e_comp_wl_seat_touch_send_downup(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+EINTERN void e_comp_wl_seat_touch_send_downup(E_Seat *seat, struct wl_client *wc,
struct wl_resource *surface, int idx, int x, int y, uint32_t timestamp,
Eina_Bool pressed);
-EINTERN void e_comp_wl_seat_pointer_send_motion(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+EINTERN void e_comp_wl_seat_pointer_send_motion(E_Seat *seat, struct wl_client *wc,
int x, int y, unsigned int timestamp);
-EINTERN void e_comp_wl_seat_pointer_send_enter(E_Comp_Wl_Seat *seat, struct wl_client *wc, E_Client *ec,
+EINTERN void e_comp_wl_seat_pointer_send_enter(E_Seat *seat, struct wl_client *wc, E_Client *ec,
struct wl_resource *surface, int x, int y);
-EINTERN void e_comp_wl_seat_pointer_send_leave(E_Comp_Wl_Seat *seat, struct wl_client *wc, E_Client *ec,
+EINTERN void e_comp_wl_seat_pointer_send_leave(E_Seat *seat, struct wl_client *wc, E_Client *ec,
struct wl_resource *surface);
-EINTERN void e_comp_wl_seat_pointer_send_button(E_Comp_Wl_Seat *seat, struct wl_client *wc,
+EINTERN void e_comp_wl_seat_pointer_send_button(E_Seat *seat, struct wl_client *wc,
uint32_t button, uint32_t state, uint32_t timestamp);
#endif
E_Tizen_Devicemgr_User_Data *device_user_data;
struct wl_array axes;
E_Comp_Wl_Data *comp_wl;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
seat = e_comp_wl_input_seat_get(dev->seat_name);
if (!seat)
}
else
{
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
Eina_List *lll;
EINA_LIST_FOREACH(comp_wl->seats, lll, seat)
{
g_tizen_devicemgr->mgr_resources = eina_list_append(g_tizen_devicemgr->mgr_resources, res);
comp_wl = e_comp_wl_get();
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
Eina_List *lll;
EINA_LIST_FOREACH(comp_wl->seats, lll, seat)
{
struct wl_client *wc;
struct wl_resource *res;
E_Comp_Wl_Data *comp_wl;
- E_Comp_Wl_Seat *seat;
+ E_Seat *seat;
E_Comp_Wl_Client_Data *volume_cdata = e_client_cdata_get(_volume_ec);
typedef struct _E_Comp_Wl_Output E_Comp_Wl_Output;
typedef struct _E_Comp_Wl_Intercept_Hook E_Comp_Wl_Intercept_Hook;
typedef struct _E_Comp_Wl_Pointer_Constraint E_Comp_Wl_Pointer_Constraint;
-typedef struct _E_Comp_Wl_Seat E_Comp_Wl_Seat;
+typedef struct _E_Seat E_Seat;
typedef enum _E_Comp_Wl_Buffer_Type
{
void *data;
};
-struct _E_Comp_Wl_Seat
+struct _E_Seat
{
struct wl_global *global;
Eina_List *resources;