diff --git a/main/source/window/win_window.cpp b/main/source/window/win_window.cpp index e1311ebd2..364df369a 100644 --- a/main/source/window/win_window.cpp +++ b/main/source/window/win_window.cpp @@ -162,6 +162,11 @@ namespace hex { if (result != 0 && (ImGui::IsItemHovered() || ImGui::IsPopupOpen(nullptr, ImGuiPopupFlags_AnyPopupId))) break; + if (GImGui->HoveredWindow != nullptr && + GImGui->HoveredWindow->Name != std::string("##MainMenuBar") && + GImGui->HoveredWindow->Name != std::string("ImHexDockSpace")) + break; + switch (result) { case RegionLeft: return HTLEFT;