1
0
mirror of synced 2024-11-24 15:50:16 +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)))
break;
if (GImGui->HoveredWindow != nullptr &&
GImGui->HoveredWindow->Name != std::string("##MainMenuBar") &&
GImGui->HoveredWindow->Name != std::string("ImHexDockSpace"))
break;
switch (result) {
case RegionLeft:
return HTLEFT;