|
|
@ -197,14 +197,6 @@ static void ImGui_ImplWin32_UpdateMousePos()
|
|
|
|
if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)hovered_hwnd))
|
|
|
|
if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle((void*)hovered_hwnd))
|
|
|
|
if ((viewport->Flags & ImGuiViewportFlags_NoInputs) == 0) // FIXME: We still get our NoInputs window with WM_NCHITTEST/HTTRANSPARENT code when decorated?
|
|
|
|
if ((viewport->Flags & ImGuiViewportFlags_NoInputs) == 0) // FIXME: We still get our NoInputs window with WM_NCHITTEST/HTTRANSPARENT code when decorated?
|
|
|
|
io.MouseHoveredViewport = viewport->ID;
|
|
|
|
io.MouseHoveredViewport = viewport->ID;
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
|
|
|
POINT pos;
|
|
|
|
|
|
|
|
if (HWND active_window = ::GetForegroundWindow())
|
|
|
|
|
|
|
|
if (active_window == g_hWnd || ::IsChild(active_window, g_hWnd))
|
|
|
|
|
|
|
|
if (::GetCursorPos(&pos) && ::ScreenToClient(g_hWnd, &pos))
|
|
|
|
|
|
|
|
io.MousePos = ImVec2((float)pos.x, (float)pos.y);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#ifdef _MSC_VER
|
|
|
|