if (ec != ips->ec)
goto end;
- if (ips->showing)
- _e_input_panel_position_set(ec, ec->client.w, ec->client.h);
+ if (ips->showing) {
+ LOGD("current angle : %d", ec->e.state.rot.ang.curr);
+ _e_input_panel_position_set(ec, ec->client.w, ec->client.h);
+ }
end:
return ECORE_CALLBACK_PASS_ON;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
+ LOGD("current angle : %d", ec->e.state.rot.ang.curr);
_e_input_panel_position_set(ec, w, h);
}
void
e_input_panel_floating_position_set(int x, int y)
{
+ int cur_angle;
E_Client *floating_ec = NULL;
+ E_Input_Panel_Surface *floating_ips;
E_Input_Panel_Surface *ips;
Eina_List *l;
Eina_List *l_next;
if (ips->ec->frame && ips->ec->vkbd.floating)
{
floating_ec = ips->ec;
+ floating_ips = ips;
break;
}
}
- if (!floating_ec || !g_floating_info) return;
+ if (!floating_ec || !floating_ips || !g_floating_info) return;
- switch (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;
+
+ LOGD("current angle : %d", cur_angle);
+ switch (cur_angle)
{
case 90:
case 270:
break;
}
- _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