E_Client *ec;
struct
- {
- Ecore_Event_Handler *rot_change_end;
- Ecore_Event_Handler *buf_change;
- Ecore_Event_Handler *rot_geometry_set;
- } eh;
+ {
+ Ecore_Event_Handler *rot_change_end;
+ Ecore_Event_Handler *buf_change;
+ Ecore_Event_Handler *rot_geometry_set;
+ } eh;
Eina_Bool panel;
Eina_Bool showing;
int before_canvas_y;
struct
- {
- int portrait_x;
- int portrait_y;
- int landscape_x;
- int landscape_y;
- } start_position;
+ {
+ int portrait_x;
+ int portrait_y;
+ int landscape_x;
+ int landscape_y;
+ } start_position;
};
static E_Input_Panel *g_input_panel = NULL;
switch (ec->e.state.rot.ang.curr)
{
- case 90:
- case 270:
- if (!g_floating_info->init_landscape_position)
- {
- g_floating_info->start_position.landscape_x = (zh - ec->client.h) / 2;
- g_floating_info->start_position.landscape_y = (zw - ec->client.w) / 2;
- g_floating_info->init_landscape_position = EINA_TRUE;
- }
- break;
- case 0:
- case 180:
- default:
- if (!g_floating_info->init_portrait_position)
- {
- g_floating_info->start_position.portrait_x = (zw - ec->client.w) / 2;
- g_floating_info->start_position.portrait_y = (zh - ec->client.h) / 2;
- g_floating_info->init_portrait_position = EINA_TRUE;
- }
- break;
+ case 90:
+ case 270:
+ if (!g_floating_info->init_landscape_position)
+ {
+ g_floating_info->start_position.landscape_x = (zh - ec->client.h) / 2;
+ g_floating_info->start_position.landscape_y = (zw - ec->client.w) / 2;
+ g_floating_info->init_landscape_position = EINA_TRUE;
+ }
+ break;
+ case 0:
+ case 180:
+ default:
+ if (!g_floating_info->init_portrait_position)
+ {
+ g_floating_info->start_position.portrait_x = (zw - ec->client.w) / 2;
+ g_floating_info->start_position.portrait_y = (zh - ec->client.h) / 2;
+ g_floating_info->init_portrait_position = EINA_TRUE;
+ }
+ break;
}
}
switch (ec->e.state.rot.ang.curr)
{
- case 90:
- case 270:
- if (x < 0)
- *new_x = 0;
- else if (x > zh - ec->client.h)
- *new_x = zh - ec->client.h;
- else
- *new_x = x;
-
- if (y < 0)
- *new_y = 0;
- else if (y > zw - ec->client.w)
- *new_y = zw - ec->client.w;
- else
- *new_y = y;
- break;
- case 0:
- case 180:
- default:
- if (x < 0)
- *new_x = 0;
- else if (x > zw - ec->client.w)
- *new_x = zw - ec->client.w;
- else
- *new_x = x;
-
- if (y < 0)
- *new_y = 0;
- else if (y > zh - ec->client.h)
- *new_y = zh - ec->client.h;
- else
- *new_y = y;
- break;
+ case 90:
+ case 270:
+ if (x < 0)
+ *new_x = 0;
+ else if (x > zh - ec->client.h)
+ *new_x = zh - ec->client.h;
+ else
+ *new_x = x;
+
+ if (y < 0)
+ *new_y = 0;
+ else if (y > zw - ec->client.w)
+ *new_y = zw - ec->client.w;
+ else
+ *new_y = y;
+ break;
+ case 0:
+ case 180:
+ default:
+ if (x < 0)
+ *new_x = 0;
+ else if (x > zw - ec->client.w)
+ *new_x = zw - ec->client.w;
+ else
+ *new_x = x;
+
+ if (y < 0)
+ *new_y = 0;
+ else if (y > zh - ec->client.h)
+ *new_y = zh - ec->client.h;
+ else
+ *new_y = y;
+ break;
}
}
cur_angle = ec->e.state.rot.ang.curr;
if ((!g_floating_info->init_portrait_position && (cur_angle == 0 || cur_angle == 180)) ||
- (!g_floating_info->init_landscape_position && (cur_angle == 90 || cur_angle == 270)))
+ (!g_floating_info->init_landscape_position && (cur_angle == 90 || cur_angle == 270)))
_e_input_panel_init_floating_position(ec);
e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
switch (cur_angle)
{
- case 90:
- if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
- {
- *new_x = zh - y - ec->client.h;
- *new_y = x;
- }
- else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
- {
- *new_x = y;
- *new_y = zh - x - ec->client.h;
- }
- break;
- case 180:
- if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
- {
- *new_x = zh - y - ec->client.h;
- *new_y = zw - x - ec->client.w;
- }
- else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
- {
- *new_x = zw - x - ec->client.w;
- *new_y = zh - y - ec->client.h;
- }
- break;
- case 270:
- if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
- {
- *new_x = y;
- *new_y = zw - x - ec->client.w;
- }
- else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
- {
- *new_x = zw - y - ec->client.w;
- *new_y = x;
- }
- break;
- case 0:
- default:
- *new_x = x;
- *new_y = y;
- break;
+ case 90:
+ if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
+ {
+ *new_x = zh - y - ec->client.h;
+ *new_y = x;
+ }
+ else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
+ {
+ *new_x = y;
+ *new_y = zh - x - ec->client.h;
+ }
+ break;
+ case 180:
+ if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
+ {
+ *new_x = zh - y - ec->client.h;
+ *new_y = zw - x - ec->client.w;
+ }
+ else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
+ {
+ *new_x = zw - x - ec->client.w;
+ *new_y = zh - y - ec->client.h;
+ }
+ break;
+ case 270:
+ if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
+ {
+ *new_x = y;
+ *new_y = zw - x - ec->client.w;
+ }
+ else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
+ {
+ *new_x = zw - y - ec->client.w;
+ *new_y = x;
+ }
+ break;
+ case 0:
+ default:
+ *new_x = x;
+ *new_y = y;
+ break;
}
}
/* Get the position of center bottom each angles */
switch (ec->e.state.rot.ang.curr)
{
- case 90:
- nx = zx + zw - w;
- ny = zy + (zh - h) / 2;
- is_portrait = EINA_FALSE;
- break;
- case 180:
- nx = zx + (zw - w) / 2;
- ny = zy;
- is_portrait = EINA_TRUE;
- break;
- case 270:
- nx = zx;
- ny = zy + (zh - h) / 2;
- is_portrait = EINA_FALSE;
- break;
- case 0:
- default:
- nx = zx + (zw - w) / 2;
- ny = zy + zh - h;
- is_portrait = EINA_TRUE;
- break;
+ case 90:
+ nx = zx + zw - w;
+ ny = zy + (zh - h) / 2;
+ is_portrait = EINA_FALSE;
+ break;
+ case 180:
+ nx = zx + (zw - w) / 2;
+ ny = zy;
+ is_portrait = EINA_TRUE;
+ break;
+ case 270:
+ nx = zx;
+ ny = zy + (zh - h) / 2;
+ is_portrait = EINA_FALSE;
+ break;
+ case 0:
+ default:
+ nx = zx + (zw - w) / 2;
+ ny = zy + zh - h;
+ is_portrait = EINA_TRUE;
+ break;
}
if (ec->vkbd.floating)
goto end;
if (ips->showing) {
- LOGI("current angle : %d", ec->e.state.rot.ang.curr);
- _e_input_panel_position_set(ec, ec->client.w, ec->client.h);
+ LOGI("current angle : %d", ec->e.state.rot.ang.curr);
+ _e_input_panel_position_set(ec, ec->client.w, ec->client.h);
}
end:
if ((w != ec->e.state.rot.geom[i].w) ||
(h != ec->e.state.rot.geom[i].h))
- return false;
+ return false;
else
- return true;
+ return true;
}
static Eina_Bool
LOGI("Effect end IPS's ec. ips:%p, ips->ec:%p", ips, ips->ec);
if (!ips->showing)
- vconf_set_int(VCONFKEY_ISF_INPUT_PANEL_STATE, VCONFKEY_ISF_INPUT_PANEL_STATE_DID_HIDE);
+ vconf_set_int(VCONFKEY_ISF_INPUT_PANEL_STATE, VCONFKEY_ISF_INPUT_PANEL_STATE_DID_HIDE);
- return EINA_TRUE;
+ return EINA_TRUE;
}
static void
E_Comp_Client_Data *cdata = NULL;
LOGI("client %p input_panel %p ec %p resource %p surface_resource %p",
- client, input_panel, ec, resource, surface_resource);
+ client, input_panel, ec, resource, surface_resource);
if (!input_panel)
{
}
if (ec->ignored)
- e_client_unignore(ec);
+ e_client_unignore(ec);
/* set input panel client properties */
ec->borderless = EINA_TRUE;
Eina_Bool
e_input_panel_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
{
- E_Input_Panel_Surface *ips;
- Eina_List *l;
- int angle = 0;
- int zx, zy, zw, zh;
+ E_Input_Panel_Surface *ips;
+ Eina_List *l;
+ int angle = 0;
+ int zx, zy, zw, zh;
- if (!g_input_panel) return EINA_FALSE;
- if (!x || !y || !w || !h) return EINA_FALSE;
+ if (!g_input_panel) return EINA_FALSE;
+ if (!x || !y || !w || !h) return EINA_FALSE;
- EINA_LIST_FOREACH(g_input_panel->surfaces, l, ips)
- {
+ EINA_LIST_FOREACH(g_input_panel->surfaces, l, ips)
+ {
if (!ips || !ips->ec) continue;
if (ips->ec == ec || !ec)
{
- angle = ips->ec->e.state.rot.ang.next < 0 ?
- ips->ec->e.state.rot.ang.curr :
- ips->ec->e.state.rot.ang.next;
-
- e_client_base_output_resolution_useful_geometry_get(ips->ec, &zx, &zy, &zw, &zh);
- switch (angle)
- {
- case 90:
- *x = zh - ips->ec->y - ips->ec->client.h;
- *y = ips->ec->x;
- *w = ips->ec->h;
- *h = ips->ec->w;
- break;
- case 180:
- *x = zh - ips->ec->y - ips->ec->client.h;
- *y = zw - ips->ec->x - ips->ec->client.w;
- *w = ips->ec->w;
- *h = ips->ec->h;
- break;
- case 270:
- *x = ips->ec->y;
- *y = zw - ips->ec->x - ips->ec->client.w;
- *w = ips->ec->h;
- *h = ips->ec->w;
- break;
- case 0:
- default:
- *x = ips->ec->x;
- *y = ips->ec->y;
- *w = ips->ec->w;
- *h = ips->ec->h;
- break;
- }
-
- return EINA_TRUE;
- }
- }
-
- return EINA_FALSE;
+ angle = ips->ec->e.state.rot.ang.next < 0 ?
+ ips->ec->e.state.rot.ang.curr :
+ ips->ec->e.state.rot.ang.next;
+
+ e_client_base_output_resolution_useful_geometry_get(ips->ec, &zx, &zy, &zw, &zh);
+ switch (angle)
+ {
+ case 90:
+ *x = zh - ips->ec->y - ips->ec->client.h;
+ *y = ips->ec->x;
+ *w = ips->ec->h;
+ *h = ips->ec->w;
+ break;
+ case 180:
+ *x = zh - ips->ec->y - ips->ec->client.h;
+ *y = zw - ips->ec->x - ips->ec->client.w;
+ *w = ips->ec->w;
+ *h = ips->ec->h;
+ break;
+ case 270:
+ *x = ips->ec->y;
+ *y = zw - ips->ec->x - ips->ec->client.w;
+ *w = ips->ec->h;
+ *h = ips->ec->w;
+ break;
+ case 0:
+ default:
+ *x = ips->ec->x;
+ *y = ips->ec->y;
+ *w = ips->ec->w;
+ *h = ips->ec->h;
+ break;
+ }
+
+ return EINA_TRUE;
+ }
+ }
+
+ return EINA_FALSE;
}
static Eina_Bool
void
e_input_panel_shutdown(void)
{
- if (g_input_panel)
- {
- if (g_input_panel->resource)
- {
- wl_resource_destroy(g_input_panel->resource);
- g_input_panel->resource = NULL;
- }
+ if (g_input_panel)
+ {
+ if (g_input_panel->resource)
+ {
+ wl_resource_destroy(g_input_panel->resource);
+ g_input_panel->resource = NULL;
+ }
- if (g_input_panel->global)
- {
- wl_global_destroy(g_input_panel->global);
- g_input_panel->global = NULL;
- }
+ if (g_input_panel->global)
+ {
+ wl_global_destroy(g_input_panel->global);
+ g_input_panel->global = NULL;
+ }
- E_FREE_FUNC(g_input_panel->idle_enter, ecore_idle_enterer_del);
- }
+ E_FREE_FUNC(g_input_panel->idle_enter, ecore_idle_enterer_del);
+ }
- if (g_floating_info)
- E_FREE(g_floating_info);
+ if (g_floating_info)
+ E_FREE(g_floating_info);
}
static void
}
else
{
- child->icccm.fetch.transient_for = EINA_FALSE;
- child->icccm.transient_for = 0;
+ child->icccm.fetch.transient_for = EINA_FALSE;
+ child->icccm.transient_for = 0;
}
EC_CHANGED(child);
}
if (!floating_ec || !floating_ips || !g_floating_info) return;
- if(floating_ips->showing)
- cur_angle = floating_ec->e.state.rot.ang.curr;
+ if (floating_ips->showing)
+ cur_angle = floating_ec->e.state.rot.ang.curr;
else
- cur_angle = floating_ec->zone->rot.curr;
+ cur_angle = floating_ec->zone->rot.curr;
LOGI("current angle : %d", cur_angle);
switch (cur_angle)
{
- case 90:
- case 270:
- g_floating_info->start_position.landscape_x = x;
- g_floating_info->start_position.landscape_y = y;
- g_floating_info->init_landscape_position = EINA_TRUE;
- break;
- case 0:
- case 180:
- default:
- g_floating_info->start_position.portrait_x = x;
- g_floating_info->start_position.portrait_y = y;
- g_floating_info->init_portrait_position = EINA_TRUE;
- break;
+ case 90:
+ case 270:
+ g_floating_info->start_position.landscape_x = x;
+ g_floating_info->start_position.landscape_y = y;
+ g_floating_info->init_landscape_position = EINA_TRUE;
+ break;
+ case 0:
+ case 180:
+ default:
+ g_floating_info->start_position.portrait_x = x;
+ g_floating_info->start_position.portrait_y = y;
+ g_floating_info->init_portrait_position = EINA_TRUE;
+ break;
}
- if(floating_ips->showing)
- _e_input_panel_position_set(floating_ec, floating_ec->client.w, floating_ec->client.h);
+ if (floating_ips->showing)
+ _e_input_panel_position_set(floating_ec, floating_ec->client.w, floating_ec->client.h);
}
Eina_Bool
/*
Do we need to check currently effect type?
then what flag do we check? ips->ec->visible or ips->showing?
- */
+ */
if (ips->ec->visible)
run_type = 1; // show effect is running
else
#if ENABLE_GRAB_KEYBOARD
struct
- {
- struct wl_resource *resource;
- Eina_List *handlers;
- Eina_Bool grabbed;
- struct xkb_keymap *keymap;
- struct xkb_state *state;
- xkb_mod_mask_t mod_depressed, mod_latched, mod_locked;
- xkb_layout_index_t mod_group;
- int mod_changed;
- } kbd;
+ {
+ struct wl_resource *resource;
+ Eina_List *handlers;
+ Eina_Bool grabbed;
+ struct xkb_keymap *keymap;
+ struct xkb_state *state;
+ xkb_mod_mask_t mod_depressed, mod_latched, mod_locked;
+ xkb_layout_index_t mod_group;
+ int mod_changed;
+ } kbd;
#endif
};
/* This represents the overall input panel's state including the candidate area */
enum _E_Input_Panel_State
{
- E_INPUT_PANEL_STATE_DID_HIDE,
- E_INPUT_PANEL_STATE_WILL_HIDE,
- E_INPUT_PANEL_STATE_DID_SHOW,
- E_INPUT_PANEL_STATE_WILL_SHOW,
+ E_INPUT_PANEL_STATE_DID_HIDE,
+ E_INPUT_PANEL_STATE_WILL_HIDE,
+ E_INPUT_PANEL_STATE_DID_SHOW,
+ E_INPUT_PANEL_STATE_WILL_SHOW,
};
static E_Input_Method *g_input_method = NULL;
#undef E_CLIENT_HOOK_APPEND
#define E_CLIENT_HOOK_APPEND(l, t, cb, d) \
- do \
- { \
- E_Client_Hook *_h; \
- _h = e_client_hook_add(t, cb, d); \
- assert(_h); \
- l = eina_list_append(l, _h); \
- } \
- while (0)
+ do \
+ { \
+ E_Client_Hook *_h; \
+ _h = e_client_hook_add(t, cb, d); \
+ assert(_h); \
+ l = eina_list_append(l, _h); \
+ } \
+ while (0)
static void _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *resource);
static void _e_text_input_deactivate(E_Text_Input *text_input, E_Input_Method *input_method, Eina_Bool need_focus_out);
else dir = XKB_KEY_UP;
context->kbd.mod_changed =
- xkb_state_update_key(context->kbd.state, keycode + 8, dir);
+ xkb_state_update_key(context->kbd.state, keycode + 8, dir);
}
static void
if (!context->kbd.state) return;
context->kbd.mod_depressed =
- xkb_state_serialize_mods(context->kbd.state, XKB_STATE_DEPRESSED);
+ xkb_state_serialize_mods(context->kbd.state, XKB_STATE_DEPRESSED);
context->kbd.mod_latched =
- xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LATCHED);
+ xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LATCHED);
context->kbd.mod_locked =
- xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LOCKED);
+ xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LOCKED);
context->kbd.mod_group =
- xkb_state_serialize_layout(context->kbd.state, XKB_STATE_LAYOUT_EFFECTIVE);
+ xkb_state_serialize_layout(context->kbd.state, XKB_STATE_LAYOUT_EFFECTIVE);
serial = wl_display_next_serial(e_comp_wl->wl.disp);
wl_keyboard_send_modifiers(keyboard, serial,
E_Input_Method_Context *context = wl_resource_get_user_data(resource);
EINA_SAFETY_ON_NULL_RETURN(context);
- LOGI("Candidate State : %d", state);
- Eina_Bool prev_show_state = g_show_state_candidate;
- g_show_state_candidate = state;
- if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_HIDE)
- prev_show_state = EINA_FALSE;
+ LOGI("Candidate State : %d", state);
+ Eina_Bool prev_show_state = g_show_state_candidate;
+ g_show_state_candidate = state;
+ if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_HIDE)
+ prev_show_state = EINA_FALSE;
- if (!state)
- {
- /* If the candidate state has been changed to OFF when panel is not in show state, */
- if (!g_show_state_candidate && prev_show_state && g_disable_show_panel && g_client && g_text_input)
- _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
- }
- else
- {
- /* If the candidate state has been changed to ON when panel is not in show state */
- if (g_show_state_candidate && !prev_show_state && g_disable_show_panel && g_client && g_text_input)
- _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
- }
+ if (!state)
+ {
+ /* If the candidate state has been changed to OFF when panel is not in show state, */
+ if (!g_show_state_candidate && prev_show_state && g_disable_show_panel && g_client && g_text_input)
+ _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
+ }
+ else
+ {
+ /* If the candidate state has been changed to ON when panel is not in show state */
+ if (g_show_state_candidate && !prev_show_state && g_disable_show_panel && g_client && g_text_input)
+ _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
+ }
}
static void
_e_text_input_method_context_cb_filter_key_event_done(struct wl_client *client EINA_UNUSED, struct wl_resource *resource,
uint32_t serial, uint32_t state)
{
- E_Input_Method_Context *context = wl_resource_get_user_data(resource);
- EINA_SAFETY_ON_NULL_RETURN(context);
+ E_Input_Method_Context *context = wl_resource_get_user_data(resource);
+ EINA_SAFETY_ON_NULL_RETURN(context);
- if ((context->input) && (context->input->resource))
- wl_text_input_send_filter_key_event_done(context->input->resource,
- serial, state);
+ if ((context->input) && (context->input->resource))
+ wl_text_input_send_filter_key_event_done(context->input->resource,
+ serial, state);
}
static void
_e_text_input_method_context_cb_update_ise_geometry(struct wl_client *client EINA_UNUSED, struct wl_resource *resource,
- uint32_t serial, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
+ uint32_t serial, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
{
- E_Input_Method_Context *context = wl_resource_get_user_data(resource);
- EINA_SAFETY_ON_NULL_RETURN(context);
+ E_Input_Method_Context *context = wl_resource_get_user_data(resource);
+ EINA_SAFETY_ON_NULL_RETURN(context);
- if ((context->input) && (context->input->resource) && !(e_input_panel_floating_mode_get()))
- {
- _e_text_input_send_input_panel_geometry(context->input->resource, x, y, width, height);
- g_updated_geometry = EINA_TRUE;
- }
+ if ((context->input) && (context->input->resource) && !(e_input_panel_floating_mode_get()))
+ {
+ _e_text_input_send_input_panel_geometry(context->input->resource, x, y, width, height);
+ g_updated_geometry = EINA_TRUE;
+ }
}
static void
_e_text_input_method_context_cb_reshow_input_panel(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
{
- e_input_panel_transient_for_set(client_surface_ec);
- e_input_panel_wait_update_set(EINA_TRUE);
+ e_input_panel_transient_for_set(client_surface_ec);
+ e_input_panel_wait_update_set(EINA_TRUE);
}
static void
_e_text_input_method_context_cb_set_floating_panel(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t state)
{
- e_input_panel_floating_panel_set(state ? EINA_TRUE : EINA_FALSE);
+ e_input_panel_floating_panel_set(state ? EINA_TRUE : EINA_FALSE);
}
static void
_e_text_input_method_context_cb_set_floating_drag_enabled(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t enabled)
{
- e_input_panel_floating_drag_enabled(enabled ? EINA_TRUE : EINA_FALSE);
+ e_input_panel_floating_drag_enabled(enabled ? EINA_TRUE : EINA_FALSE);
}
static const struct zwp_input_method_context_v1_interface _e_text_input_method_context_implementation = {
if (!ecore_key_down_handler)
ecore_key_down_handler = ecore_event_handler_prepend(ECORE_EVENT_KEY_DOWN,
- _e_mod_ecore_key_down_cb,
- NULL);
+ _e_mod_ecore_key_down_cb,
+ NULL);
context->resource =
wl_resource_create(wl_resource_get_client(input_method->resource),
e_input_panel_visibility_change(EINA_TRUE);
e_input_panel_transient_for_set(client_surface_ec);
}
- return;
+ return;
}
#endif
static void
_e_text_input_cb_input_panel_hide(struct wl_client *client, struct wl_resource *resource)
{
- if (g_show_client == client) {
- _input_panel_hide(client, resource, EINA_FALSE);
- g_show_text_input = NULL;
- g_show_client = NULL;
- }
+ if (g_show_client == client)
+ {
+ _input_panel_hide(client, resource, EINA_FALSE);
+ g_show_text_input = NULL;
+ g_show_client = NULL;
+ }
}
static void
if (input_method->context->resource)
zwp_input_method_context_v1_send_content_type(input_method->context->resource,
- hint, purpose);
+ hint, purpose);
}
}
if (input_method->context->resource)
zwp_input_method_context_v1_send_preferred_language(input_method->context->resource,
- language);
+ language);
}
}
if (input_method->context->resource)
zwp_input_method_context_v1_send_invoke_action(input_method->context->resource,
- button, index);
+ button, index);
}
}
if (input_method->context->resource)
zwp_input_method_context_v1_send_return_key_type(input_method->context->resource,
- return_key_type);
+ return_key_type);
}
}
if (input_method->context->resource)
zwp_input_method_context_v1_send_return_key_disabled(input_method->context->resource,
- disabled);
+ disabled);
}
}
if (input_method->context->resource)
zwp_input_method_context_v1_send_input_panel_data(input_method->context->resource,
- data, length);
+ data, length);
}
/* Temporarily receiving WILL_HIDE_ACK via input_panel_data, will need for a new wayland protocol */
if (input_method->context->resource)
zwp_input_method_context_v1_send_bidi_direction(input_method->context->resource,
- bidi_direction);
+ bidi_direction);
}
}
if (input_method->context->resource)
zwp_input_method_context_v1_send_process_input_device_event(input_method->context->resource,
- type, data, length);
+ type, data, length);
}
}
uint32_t dev_subclass, uint32_t keycode)
{
- E_Text_Input *text_input = wl_resource_get_user_data(resource);
- E_Input_Method *input_method = NULL;
+ E_Text_Input *text_input = wl_resource_get_user_data(resource);
+ E_Input_Method *input_method = NULL;
CHECK_TEXT_INPUT(resource, text_input);
if (input_method && input_method->context && input_method->context->resource)
{
zwp_input_method_context_v1_send_filter_key_event(input_method->context->resource,
- serial, time, keyname, state, modifiers,
- dev_name, dev_class, dev_subclass, keycode);
+ serial, time, keyname, state, modifiers,
+ dev_name, dev_class, dev_subclass, keycode);
}
else
{
{
if (text_input->input_panel_visible)
{
- _input_panel_hide(g_client, resource, EINA_TRUE);
+ _input_panel_hide(g_client, resource, EINA_TRUE);
}
g_show_text_input = NULL;
LOGW ("Failed to register callback function for H/W keyboard input detection.");
eeze_udev_watch_handler = eeze_udev_watch_add(EEZE_UDEV_TYPE_KEYBOARD,
- EEZE_UDEV_EVENT_REMOVE,
- _e_mod_eeze_udev_watch_cb,
- NULL);
+ EEZE_UDEV_EVENT_REMOVE,
+ _e_mod_eeze_udev_watch_cb,
+ NULL);
if (!eeze_udev_watch_handler)
goto err;