A problem when change the window size

As I want to change the window size (to be larger), I used the following codes:

props = WindowProperties()
props.setSize(1600, 1200)
base.win.requestProperties(props)

The window’s size is changed. However, the center of the panda window, which is originally aligned with the center of my computer screen, is now some offset. So I need to drag the window to let it come back to the center of my screen. I think it is a little strange.

So how can solve the problem?
Thanks in advance

The window origin is measured to the top-left corner of the window’s drawing area. If you wish to measure it relative to the center, you will need to add half the window size to it.

If you wish to center the window on the screen, add this:

props.setOrigin(-2, -2)

it works! Thank you very much