diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -190,11 +190,11 @@ 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->win) & SDL_WINDOW_MINIMIZED) { | 193 | if (~SDL_GetWindowFlags(d->window->base.win) & SDL_WINDOW_MINIMIZED) { |
194 | /* Save the actual visible window position, too, because snapped windows may | 194 | /* Save the actual visible window position, too, because snapped windows may |
195 | still be resized/moved without affecting normalRect. */ | 195 | still be resized/moved without affecting normalRect. */ |
196 | SDL_GetWindowPosition(d->window->win, &x, &y); | 196 | SDL_GetWindowPosition(d->window->base.win, &x, &y); |
197 | SDL_GetWindowSize(d->window->win, &w, &h); | 197 | SDL_GetWindowSize(d->window->base.win, &w, &h); |
198 | appendFormat_String( | 198 | appendFormat_String( |
199 | str, "~window.setrect snap:%d width:%d height:%d coord:%d %d\n", | 199 | str, "~window.setrect snap:%d width:%d height:%d coord:%d %d\n", |
200 | snap_MainWindow(d->window), w, h, x, y); | 200 | snap_MainWindow(d->window), w, h, x, y); |