[Commits] SDL: Fixed restoring a window that was maximized then minimized, ...

libsdl.org revision control commits-owner at libsdl.org
Tue May 16 17:49:02 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/e75416b7aba1
changeset: 11007:e75416b7aba1
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue May 16 17:48:57 2017 -0700
description:
Fixed restoring a window that was maximized then minimized, then restored.

diffstat:

 src/video/windows/SDL_windowsevents.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 40ff26e5a853 -r e75416b7aba1 src/video/windows/SDL_windowsevents.c
--- a/src/video/windows/SDL_windowsevents.c	Tue May 16 06:30:39 2017 -0700
+++ b/src/video/windows/SDL_windowsevents.c	Tue May 16 17:48:57 2017 -0700
@@ -808,6 +808,8 @@
             switch (wParam) {
             case SIZE_MAXIMIZED:
                 SDL_SendWindowEvent(data->window,
+                    SDL_WINDOWEVENT_RESTORED, 0, 0);
+                SDL_SendWindowEvent(data->window,
                     SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
                 break;
             case SIZE_MINIMIZED:


More information about the commits mailing list