I'm trying to solve this really old WinQuake problem. When the window is dragged partially offscreen, the only ways to bring it back are to change the vid_window_x and vid_window_y cvars and changing the resolution.
In the thread there's some talk about it, but I've tried the proposed solution, and moving the VID_CheckWindowXY call didn't fix it. I've also tried messing around with various things in VID_RememberWindowPos, VID_Update and MainWndProc.
Does anyone know why exactly this bug happens?