impr: Allow command palette to be closed by clicking on the menu bar
This commit is contained in:
parent
5110a7578e
commit
5af85f24f6
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user