- evaluate return value properly
- maximize window if desired independently from position/size

Change-Id: Ied503f186c727f386660824fccb00073000347ae