From 7c18ad49ae5be131a275e97ca18748125978beff Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 6 Apr 2023 14:58:05 +0200 Subject: [PATCH] impr: Allow windows that overlap the main window title bar to be movable --- main/source/window/win_window.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;