mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Hex editor popups closing when opening sub-popups
This commit is contained in:
@@ -608,7 +608,7 @@ namespace hex::plugin::builtin {
|
||||
m_currentPopupHasHovered = false;
|
||||
}
|
||||
|
||||
m_currentPopupHover = ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem);
|
||||
m_currentPopupHover = ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_RootAndChildWindows);
|
||||
m_currentPopupDetached = !ImGui::GetCurrentWindow()->ViewportOwned;
|
||||
m_currentPopupHasHovered |= m_currentPopupHover;
|
||||
|
||||
@@ -618,7 +618,7 @@ namespace hex::plugin::builtin {
|
||||
this->closePopup();
|
||||
}
|
||||
|
||||
if ((m_currPopup != nullptr && !m_currPopup->isPinned() && !ImGui::IsWindowFocused() && !ImGui::IsWindowHovered()) || !open) {
|
||||
if ((m_currPopup != nullptr && !m_currPopup->isPinned() && !ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) && !ImGui::IsWindowHovered()) || !open) {
|
||||
this->closePopup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user