efl_ui/win: initialize max size hints to -1 during constructor

Summary:
this is just a cosmetic change for ease of debugging since it will already
be clamped to max size during eval if it remains unchanged

for max size hints a value of -1 means that the hint is unset but a value
of 0 is technically valid depending on the implementation
Depends on D10296

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10297
This commit is contained in:
Mike Blumenkrantz 2019-10-07 18:49:19 +02:00 committed by Xavi Artigas
parent eff717eb26
commit 4f947925a1
1 changed files with 1 additions and 0 deletions

View File

@ -5955,6 +5955,7 @@ _efl_ui_win_efl_object_constructor(Eo *obj, Efl_Ui_Win_Data *pd)
pd->obj = obj;
pd->provider = efl_add_ref(EFL_UI_FOCUS_PARENT_PROVIDER_STANDARD_CLASS, NULL);
pd->profile.available = eina_array_new(4);
pd->max_w = pd->max_h = -1;
// For bindings: if no parent, allow simple unref
if (!efl_parent_get(obj))