impr: Allow windows that overlap the main window title bar to be movable
This commit is contained in:
parent
5f713882d4
commit
7c18ad49ae
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user