summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-21 12:40:46 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-21 12:40:46 +0300
commite83ff095348ed3bb6173c38a8e7bff8b1aaf324c (patch)
treeef23f49350bb7caf5a1da751e2edf1c68927b5fd /src/ui/window.h
parent09e1f89c21f9c8fbdcfbe801cc796865809161c1 (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.h1
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)
35struct Impl_Window { 35struct 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;