timob-13796: handle width and height properly for HW windows. ignore top/bottom/left/right for HW windows.