summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 7d368f42..aac2405c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -636,7 +636,7 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
636 return iFalse; 636 return iFalse;
637#endif 637#endif
638 case SDL_WINDOWEVENT_MOVED: { 638 case SDL_WINDOWEVENT_MOVED: {
639 if (!isMaximized_Window_(d)) { 639 if (!isMaximized_Window_(d) && !d->isDrawFrozen) {
640 d->lastRect.pos = init_I2(ev->data1, ev->data2); 640 d->lastRect.pos = init_I2(ev->data1, ev->data2);
641 iInt2 border = zero_I2(); 641 iInt2 border = zero_I2();
642#if !defined (iPlatformApple) 642#if !defined (iPlatformApple)
@@ -648,7 +648,7 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
648 } 648 }
649 case SDL_WINDOWEVENT_RESIZED: 649 case SDL_WINDOWEVENT_RESIZED:
650 case SDL_WINDOWEVENT_SIZE_CHANGED: 650 case SDL_WINDOWEVENT_SIZE_CHANGED:
651 if (!isMaximized_Window_(d)) { 651 if (!isMaximized_Window_(d) && !d->isDrawFrozen) {
652 d->lastRect.size = init_I2(ev->data1, ev->data2); 652 d->lastRect.size = init_I2(ev->data1, ev->data2);
653 } 653 }
654 updateRootSize_Window_(d); 654 updateRootSize_Window_(d);