diff --git a/GrpcBrowser.cpp b/GrpcBrowser.cpp index eaebc513..fbd72b97 100644 --- a/GrpcBrowser.cpp +++ b/GrpcBrowser.cpp @@ -37,7 +37,7 @@ class grpc_proxy_objImpl final : public grpc_proxy_obj::Service if (!SlBrowser::instance().m_widget->isHidden()) { HWND hwnd = HWND(SlBrowser::instance().m_widget->winId()); - Util::ForceForegroundWindow(hwnd); + WindowsFunctions::ForceForegroundWindow(hwnd); } return grpc::Status::OK; diff --git a/browser-client.cpp b/browser-client.cpp index be1ba621..4cca242b 100644 --- a/browser-client.cpp +++ b/browser-client.cpp @@ -218,7 +218,7 @@ bool BrowserClient::OnProcessMessageReceived(CefRefPtr browser, CefR if (::IsIconic(hwnd)) ::ShowWindow(hwnd, SW_RESTORE); - Util::ForceForegroundWindow(hwnd); + WindowsFunctions::ForceForegroundWindow(hwnd); break; } case JavascriptApi::JS_QT_SET_WINDOW_POSITION: