diff --git a/libs/ImGui/include/imgui_memory_editor.h b/libs/ImGui/include/imgui_memory_editor.h index c6a3c2307..ca573b693 100644 --- a/libs/ImGui/include/imgui_memory_editor.h +++ b/libs/ImGui/include/imgui_memory_editor.h @@ -187,7 +187,7 @@ struct MemoryEditor CalcSizes(s, mem_size, base_display_addr); ImGui::SetNextWindowSizeConstraints(ImVec2(0.0f, 0.0f), ImVec2(s.WindowWidth, FLT_MAX)); - if (ImGui::Begin(title, &Open, ImGuiWindowFlags_NoScrollbar)) + if (ImGui::Begin(title, &Open, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse)) { DrawContents(mem_data, mem_size, base_display_addr); if (ContentsWidthChanged) diff --git a/source/views/view_data_inspector.cpp b/source/views/view_data_inspector.cpp index 185adab26..0e5803bf3 100644 --- a/source/views/view_data_inspector.cpp +++ b/source/views/view_data_inspector.cpp @@ -108,7 +108,7 @@ namespace hex { } - if (ImGui::Begin("Data Inspector", &this->m_windowOpen)) { + if (ImGui::Begin("Data Inspector", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { if (this->m_dataProvider != nullptr && this->m_dataProvider->isReadable()) { if (ImGui::BeginChild("##scrolling", ImVec2(0, ImGui::GetWindowHeight() - 60))) { if (ImGui::BeginTable("##datainspector", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_RowBg | ImGuiTableFlags_NoBordersInBody)) { diff --git a/source/views/view_disassembler.cpp b/source/views/view_disassembler.cpp index de5af6a47..9cafbd5ea 100644 --- a/source/views/view_disassembler.cpp +++ b/source/views/view_disassembler.cpp @@ -85,7 +85,7 @@ namespace hex { } - if (ImGui::Begin("Disassembler", &this->m_windowOpen)) { + if (ImGui::Begin("Disassembler", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { if (this->m_dataProvider != nullptr && this->m_dataProvider->isReadable()) { constexpr static const char * const ArchitectureNames[] = { "ARM32", "ARM64", "MIPS", "x86", "PowerPC", "Sparc", "SystemZ", "XCore", "68K", "TMS320C64x", "680X", "Ethereum" }; diff --git a/source/views/view_hashes.cpp b/source/views/view_hashes.cpp index 8ac9c64b6..9440ffb88 100644 --- a/source/views/view_hashes.cpp +++ b/source/views/view_hashes.cpp @@ -30,7 +30,7 @@ namespace hex { if (!this->m_windowOpen) return; - if (ImGui::Begin("Hashing", &this->m_windowOpen)) { + if (ImGui::Begin("Hashing", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { ImGui::BeginChild("##scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoNav); ImGui::NewLine(); diff --git a/source/views/view_information.cpp b/source/views/view_information.cpp index ac20ea122..2ae572543 100644 --- a/source/views/view_information.cpp +++ b/source/views/view_information.cpp @@ -50,7 +50,7 @@ namespace hex { if (!this->m_windowOpen) return; - if (ImGui::Begin("Data Information", &this->m_windowOpen)) { + if (ImGui::Begin("Data Information", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { ImGui::BeginChild("##scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoNav); if (this->m_dataProvider != nullptr && this->m_dataProvider->isReadable()) { diff --git a/source/views/view_pattern.cpp b/source/views/view_pattern.cpp index 2dc7cc14e..92e5c6d87 100644 --- a/source/views/view_pattern.cpp +++ b/source/views/view_pattern.cpp @@ -159,7 +159,7 @@ namespace hex { if (!this->m_windowOpen) return; - if (ImGui::Begin("Pattern", &this->m_windowOpen, ImGuiWindowFlags_None)) { + if (ImGui::Begin("Pattern", &this->m_windowOpen, ImGuiWindowFlags_None | ImGuiWindowFlags_NoCollapse)) { if (this->m_dataProvider != nullptr && this->m_dataProvider->isAvailable()) { this->m_textEditor.Render("Pattern"); diff --git a/source/views/view_pattern_data.cpp b/source/views/view_pattern_data.cpp index 8cc30729a..479eb0a07 100644 --- a/source/views/view_pattern_data.cpp +++ b/source/views/view_pattern_data.cpp @@ -52,7 +52,7 @@ namespace hex { if (!this->m_windowOpen) return; - if (ImGui::Begin("Pattern Data", &this->m_windowOpen)) { + if (ImGui::Begin("Pattern Data", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { if (this->m_dataProvider != nullptr && this->m_dataProvider->isReadable()) { if (beginPatternDataTable(this->m_dataProvider, this->m_patternData, this->m_sortedPatternData)) { diff --git a/source/views/view_strings.cpp b/source/views/view_strings.cpp index ee475d126..2424703d5 100644 --- a/source/views/view_strings.cpp +++ b/source/views/view_strings.cpp @@ -61,7 +61,7 @@ namespace hex { } - if (ImGui::Begin("Strings", &this->m_windowOpen)) { + if (ImGui::Begin("Strings", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { if (this->m_dataProvider != nullptr && this->m_dataProvider->isReadable()) { if (ImGui::InputInt("Minimum length", &this->m_minimumLength, 1, 0)) this->m_shouldInvalidate = true; diff --git a/source/views/view_tools.cpp b/source/views/view_tools.cpp index ee9f328f9..013d2663f 100644 --- a/source/views/view_tools.cpp +++ b/source/views/view_tools.cpp @@ -177,7 +177,7 @@ namespace hex { if (!this->m_windowOpen) return; - if (ImGui::Begin("Tools", &this->m_windowOpen)) { + if (ImGui::Begin("Tools", &this->m_windowOpen, ImGuiWindowFlags_NoCollapse)) { this->drawDemangler(); this->drawASCIITable();