Restore maximized window state when returning from fullscreen

This commit is contained in:
Kovid Goyal
2021-11-13 12:22:52 +05:30
parent f36b71350d
commit 95e6e80921
2 changed files with 4 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ typedef struct {
uint32_t offscreen_framebuffer;
struct {
int x, y, w, h;
bool is_set;
bool is_set, was_maximized;
} before_fullscreen;
int viewport_width, viewport_height, window_width, window_height;
double viewport_x_ratio, viewport_y_ratio;