From 30b8d26c3f68641ecc01cbd48359efddf1e26621 Mon Sep 17 00:00:00 2001 From: nakst <> Date: Wed, 3 Nov 2021 20:02:26 +0000 Subject: [PATCH] fix maximise resizeQueued bug --- kernel/windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/windows.cpp b/kernel/windows.cpp index 814f061..8e868d1 100644 --- a/kernel/windows.cpp +++ b/kernel/windows.cpp @@ -820,7 +820,7 @@ bool Window::Move(EsRectangle rectangle, uint32_t flags) { } if ((flags & ES_WINDOW_MOVE_DYNAMIC) - && (isMaximised == !!(flags & ES_WINDOW_MOVE_MAXIMIZED) /* cannot queue resize if changing isMaximised */) + && (~flags & ES_WINDOW_MOVE_MAXIMIZED) && !isMaximised && windowManager.resizeWindow == this && windowManager.resizeStartTimeStampMs + RESIZE_FLICKER_TIMEOUT_MS > KGetTimeInMs()) { windowManager.resizeQueued = true;