From a8a4737c5bcb0d228cb1dc817179c9ba94382f84 Mon Sep 17 00:00:00 2001 From: merni-ns <66267867+merni-ns@users.noreply.github.com> Date: Tue, 4 Jul 2023 02:54:44 +0530 Subject: [PATCH] Fix #11096: Increase priority of error and confirmation windows (#11104) --- src/window.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index ad1a817cdc..870371c9ba 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1332,6 +1332,15 @@ static uint GetWindowZPriority(WindowClass wc) uint z_priority = 0; switch (wc) { + case WC_TOOLTIPS: + ++z_priority; + FALLTHROUGH; + + case WC_ERRMSG: + case WC_CONFIRM_POPUP_QUERY: + ++z_priority; + FALLTHROUGH; + case WC_ENDSCREEN: ++z_priority; FALLTHROUGH; @@ -1340,10 +1349,6 @@ static uint GetWindowZPriority(WindowClass wc) ++z_priority; FALLTHROUGH; - case WC_TOOLTIPS: - ++z_priority; - FALLTHROUGH; - case WC_DROPDOWN_MENU: ++z_priority; FALLTHROUGH; @@ -1362,8 +1367,6 @@ static uint GetWindowZPriority(WindowClass wc) ++z_priority; FALLTHROUGH; - case WC_ERRMSG: - case WC_CONFIRM_POPUP_QUERY: case WC_NETWORK_ASK_RELAY: case WC_MODAL_PROGRESS: case WC_NETWORK_STATUS_WINDOW: