mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Allow windows that overlap the main window title bar to be movable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user