summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-07 18:49:19 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-10-07 18:49:19 +0200
commit4f947925a1d51402d73aa252913eb6a43c0e7dce (patch)
treee0d5b5d0ce859356ff143ba3e8ae5b3472168c1d
parenteff717eb260e7bcac7ff4283942a239d0a4aa3f8 (diff)
downloadefl-4f947925a1d51402d73aa252913eb6a43c0e7dce.tar.gz
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
-rw-r--r--src/lib/elementary/efl_ui_win.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 8ce3e59a81..36ec921f61 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -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))