Callers of this function were passing in -1, -1 for the width and height if they just wanted the window moving - rather than the size changing. We need to respect that behaviour and don't try and set the width/height to those dimensions. Now pop-up windows (ala combo-boxes) work!