There was a bug that the aspect_ratio didn't work correctly when the aspect_ratio
was set while creating partial window.
So we change code to set the aspect in e_client_resize_begin().
Change-Id: I8394185c324d0f518ec06950e2b585a9ac20e90b
goto error;
if (!_e_client_action_input_win_new()) goto error;
ecresize = ec;
+ if (ec->manage_resize.enable_aspect_ratio)
+ {
+ ELOGF("RESIZE", "Set resize aspect ratio.. ratio(%dx%d)", ec, ec->w, ec->h);
+ ec->manage_resize.aw = ec->w;
+ ec->manage_resize.ah = ec->h;
+ }
_e_client_hook_call(E_CLIENT_HOOK_RESIZE_BEGIN, ec);
if (ec->transformed)
_e_client_transform_resize_begin(ec);
{
if (!strncmp(hint->val, "1", 1))
{
- ELOGF("RESIZE", "Set resize aspect ratio", ec);
+ ELOGF("RESIZE", "Set resize aspect ratio.. ratio(%dx%d)", ec, ec->w, ec->h);
ec->manage_resize.enable_aspect_ratio = EINA_TRUE;
ec->manage_resize.aw = ec->w;
ec->manage_resize.ah = ec->h;