Bug with windows desktop directx and maximize

Hi iv noticed what I think to be a bug with the scaling when maximizing screen.
If I make the window bigger by dragging the edge of the screen. monogames correctly changes the backbuffer :slight_smile:

however if I click on the maximize button the resolution stays the same and everything is scaled automatically i.e. stretched to fit the window. Now I’m not taling about entering full screen. This is still windows mode but maximized. Is this intentional? If so shouldn’t the mouse scale as well?

Also noted that when clicking maximize button Window.ClientSizeChanged even does not fire.

There’s a pull request up that fixed this issue (among others). It’s not finished yet and I haven’t had time to work on it recently. Maybe I should split it up some more. Link: https://github.com/MonoGame/MonoGame/pull/5585