summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index 813fa396..3db5cabe 100644
--- a/src/app.c
+++ b/src/app.c
@@ -190,7 +190,10 @@ static iString *serializePrefs_App_(const iApp *d) {
190 a moment to animate to its maximized size. */ 190 a moment to animate to its maximized size. */
191#if defined (LAGRANGE_ENABLE_CUSTOM_FRAME) 191#if defined (LAGRANGE_ENABLE_CUSTOM_FRAME)
192 if (snap_MainWindow(d->window)) { 192 if (snap_MainWindow(d->window)) {
193 if (~SDL_GetWindowFlags(d->window->base.win) & SDL_WINDOW_MINIMIZED) { 193 if (snap_MainWindow(d->window) == maximized_WindowSnap) {
194 appendFormat_String(str, "~window.maximize\n");
195 }
196 else if (~SDL_GetWindowFlags(d->window->base.win) & SDL_WINDOW_MINIMIZED) {
194 /* Save the actual visible window position, too, because snapped windows may 197 /* Save the actual visible window position, too, because snapped windows may
195 still be resized/moved without affecting normalRect. */ 198 still be resized/moved without affecting normalRect. */
196 SDL_GetWindowPosition(d->window->base.win, &x, &y); 199 SDL_GetWindowPosition(d->window->base.win, &x, &y);
@@ -1501,7 +1504,7 @@ iBool forceSoftwareRender_App(void) {
1501} 1504}
1502 1505
1503void setForceSoftwareRender_App(iBool sw) { 1506void setForceSoftwareRender_App(iBool sw) {
1504 app_.forceSoftwareRender = sw; 1507 app_.forceSoftwareRender = sw;
1505} 1508}
1506 1509
1507enum iColorTheme colorTheme_App(void) { 1510enum iColorTheme colorTheme_App(void) {