diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-25 17:40:49 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-25 17:40:49 +0300 |
commit | 56e19d82be22205141ad9f2585665f2f7111dd22 (patch) | |
tree | bd33b1b4c01e8383e930a9e4e0e1e97dd3055af7 /src/app.c | |
parent | b2096d3b6d56e5a507f10d8c09bffed60b973f70 (diff) |
Windows: Various fixes after MainWindow refactoring
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); |