1
0
mirror of synced 2024-11-28 09:30:51 +01:00

impr: Allow windows that overlap the main window title bar to be movable

This commit is contained in:
WerWolv 2023-04-06 14:58:05 +02:00
parent 5f713882d4
commit 7c18ad49ae

View File

@ -162,6 +162,11 @@ namespace hex {
if (result != 0 && (ImGui::IsItemHovered() || ImGui::IsPopupOpen(nullptr, ImGuiPopupFlags_AnyPopupId))) if (result != 0 && (ImGui::IsItemHovered() || ImGui::IsPopupOpen(nullptr, ImGuiPopupFlags_AnyPopupId)))
break; break;
if (GImGui->HoveredWindow != nullptr &&
GImGui->HoveredWindow->Name != std::string("##MainMenuBar") &&
GImGui->HoveredWindow->Name != std::string("ImHexDockSpace"))
break;
switch (result) { switch (result) {
case RegionLeft: case RegionLeft:
return HTLEFT; return HTLEFT;