E_POLICY_HINT_ICONIFY_BUFFER_FLUSH = 11,
E_POLICY_HINT_TRANSIENT_FOR_ALWAYS_ON_TOP = 12,
E_POLICY_HINT_BELONG_TO_PARENT = 13,
+ E_POLICY_HINT_RESIZE_ASPECT_RATIO = 14,
};
static const char *hint_names[] =
"wm.policy.win.iconify.buffer.flush",
"wm.policy.win.transient_for.always_on_top",
"wm.policy.win.belong_to_parent",
+ "wm.policy.win.resize_aspect_ratio",
};
static void _e_policy_wl_surf_del(E_Policy_Wl_Surface *psurf);
e_client_belong_to_parent_set(ec, EINA_FALSE);
}
}
+ else if (!strncmp(hint->hint, hint_names[E_POLICY_HINT_RESIZE_ASPECT_RATIO], strlen(hint->hint)))
+ {
+ if (!strncmp(hint->val, "1", 1))
+ {
+ ELOGF("RESIZE", "Set resize aspect ratio", ec);
+ ec->manage_resize.enable_aspect_ratio = EINA_TRUE;
+ ec->manage_resize.aw = ec->w;
+ ec->manage_resize.ah = ec->h;
+ }
+ else
+ {
+ ELOGF("RESIZE", "Unset resize aspect ratio", ec);
+ ec->manage_resize.enable_aspect_ratio = EINA_FALSE;
+ }
+ }
}
}