1
0
mirror of synced 2025-01-11 05:42:15 +01:00

impr: Allow command palette to be closed by clicking on the menu bar

This commit is contained in:
WerWolv 2024-12-27 23:53:55 +01:00
parent 5110a7578e
commit 5af85f24f6

View File

@ -256,10 +256,17 @@ namespace hex {
RegionTop * (cursor.y < (window.top + border.y)) |
RegionBottom * (cursor.y >= (window.bottom - border.y));
if (result != 0 && (ImGui::IsAnyItemHovered() || ImGui::IsPopupOpen(nullptr, ImGuiPopupFlags_AnyPopupId))) {
if (result != 0 && (ImGui::IsAnyItemHovered())) {
break;
}
if (ImGui::IsPopupOpen(nullptr, ImGuiPopupFlags_AnyPopupId)) {
if (result == RegionClient)
return HTCLIENT;
else
return HTCAPTION;
}
std::string_view hoveredWindowName = GImGui->HoveredWindow == nullptr ? "" : GImGui->HoveredWindow->Name;
if (!ImHexApi::System::impl::isWindowResizable()) {