Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed bug 1309 - Don't grab focus during ResizeWindow on Win32 when S…
…DL window is reparented burkheart@yahoo.com 2011-09-24 07:42:49 PDT When reparenting the SDL Window in a Win32 window (using SetParent) then stealing the focus during resizing from the parent window is causing problems. Assume you are dragging a corner of the parent window and consequently the parent window is sending resize events to the SDL child window. The SDL child window will eventually call DIB_ResizeWindow which has a call to SetForegroundWindow and is stealing the focus from the parent window. The switch in focus stops the resizing dragging process in the parent window. Basically making it nearly impossible to resize the parent window by dragging along the edges and corners. Solution, add a condition to avoid this when reparenting: if (GetParent(SDL_Window) == NULL) SetForegroundWindow(SDL_Window);
- Loading branch information