Maximizing by dragging, then minimizing causes problems

I have a resizable game window in MonoGame. When I maximize the window, then minimize, the window goes to its initial position normally. However, when I maximize by dragging a window to a part of the screen (a feature of Windows 7 and up), the minimize button causes the window to initially go back to the position that it was when I started dragging it, then jump up to the top of the screen. I think this is because MonoGame wants to put it back to the position the window was just before it maximizes, but I have no idea how to fix this. Seems like a bug.

Yes, this is a bug. I noticed this too. Haven’t pinpointed the cause yet though.

1 Like