diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-21 12:40:46 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-21 12:40:46 +0300 |
commit | e83ff095348ed3bb6173c38a8e7bff8b1aaf324c (patch) | |
tree | ef23f49350bb7caf5a1da751e2edf1c68927b5fd /src/ui/window.h | |
parent | 09e1f89c21f9c8fbdcfbe801cc796865809161c1 (diff) |
Restoring maximized windows
Window position and size are stored when move/resize events are received, not only when the window is closed.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h index b067d30e..da4a2123 100644 --- a/src/ui/window.h +++ b/src/ui/window.h | |||
@@ -35,6 +35,7 @@ iDeclareTypeConstructionArgs(Window, iRect rect) | |||
35 | struct Impl_Window { | 35 | struct Impl_Window { |
36 | SDL_Window * win; | 36 | SDL_Window * win; |
37 | iInt2 initialPos; | 37 | iInt2 initialPos; |
38 | iRect lastRect; /* updated when window is moved/resized */ | ||
38 | iBool isDrawFrozen; /* avoids premature draws while restoring window state */ | 39 | iBool isDrawFrozen; /* avoids premature draws while restoring window state */ |
39 | SDL_Renderer *render; | 40 | SDL_Renderer *render; |
40 | iWidget * root; | 41 | iWidget * root; |