From fe50d30edcc31618905ec3e3dc39c8b78cee49db Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周二, 19 12月 2023 18:09:23 +0800
Subject: [PATCH] minor tweaks

---
 src/core/contexts/win32windowcontext.cpp |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)

diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp
index 9b3e179..0e84db1 100644
--- a/src/core/contexts/win32windowcontext.cpp
+++ b/src/core/contexts/win32windowcontext.cpp
@@ -813,22 +813,7 @@
             }
 
             case RaiseWindowHook: {
-                if (m_windowHandle->windowStates() & Qt::WindowMinimized)
-                    m_windowHandle->showNormal();
-
-                auto hWnd = reinterpret_cast<HWND>(windowId);
-
-                // I have no idea what this does, but it works mostly
-                // https://www.codeproject.com/Articles/1724/Some-handy-dialog-box-tricks-tips-and-workarounds
-
-                ::AttachThreadInput(::GetWindowThreadProcessId(::GetForegroundWindow(), nullptr),
-                                    ::GetCurrentThreadId(), TRUE);
-
-                ::SetForegroundWindow(hWnd);
-                ::SetFocus(hWnd);
-
-                ::AttachThreadInput(GetWindowThreadProcessId(GetForegroundWindow(), nullptr),
-                                    GetCurrentThreadId(), FALSE);
+                // FIXME
                 return;
             }
 

--
Gitblit v1.9.1