intel/tools: fix initial position of window in aubinator viewer
authorTapani Pälli <tapani.palli@intel.com>
Tue, 11 Sep 2018 07:32:32 +0000 (10:32 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 12 Sep 2018 08:43:21 +0000 (11:43 +0300)
commit30580640f2508e935e667e25f0e0cf4ff0ce55af
tree55ade50fa923496a5ffd66acb6491609f906c074
parenteaa718588ee97241cdbfea0b49bc30d93a99667c
intel/tools: fix initial position of window in aubinator viewer

Currently position is set before widgets are sized by gtk and
calculation can get wrong results where window is positioned
offscreen. Patch fixes this by setting aubfile window position
as 0,0 only when size_allocate has been called to the widget.

Now window is always positioned to 0,0 if imgui.ini is missing.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_viewer.cpp