diff --git a/src/Components/Modules/Window.cpp b/src/Components/Modules/Window.cpp index 6f588200..9bc11997 100644 --- a/src/Components/Modules/Window.cpp +++ b/src/Components/Modules/Window.cpp @@ -89,7 +89,7 @@ namespace Components int WINAPI Window::ShowCursorHook(BOOL show) { - if (Window::NativeCursor.Get() && GetForegroundWindow() == Window::MainWindow && Window::IsCursorWithin(Window::MainWindow)) + if (Window::NativeCursor.Get() && IsWindow(Window::MainWindow) && GetForegroundWindow() == Window::MainWindow && Window::IsCursorWithin(Window::MainWindow)) { static int count = 0; (show ? ++count : --count); @@ -129,7 +129,7 @@ namespace Components // Draw the cursor if necessary Renderer::OnFrame([] () { - if (Window::NativeCursor.Get() && GetForegroundWindow() == Window::MainWindow && Window::IsCursorWithin(Window::MainWindow)) + if (Window::NativeCursor.Get() && IsWindow(Window::MainWindow) && GetForegroundWindow() == Window::MainWindow && Window::IsCursorWithin(Window::MainWindow)) { int value = 0;