1
0
mirror of synced 2025-01-29 19:17:28 +01:00

impr: Make windows always fully opaque when they're not docked

This commit is contained in:
WerWolv 2024-04-27 20:19:45 +02:00
parent 08fc393451
commit 81982aa821

View File

@ -562,12 +562,15 @@ namespace hex {
ImGui::SetNextWindowClass(&windowClass);
auto window = ImGui::FindWindowByName(view->getName().c_str());
if (window != nullptr && window->DockNode == nullptr)
ImGui::SetNextWindowBgAlpha(1.0F);
// Draw view
view->draw();
view->trackViewOpenState();
if (view->getWindowOpenState()) {
auto window = ImGui::FindWindowByName(view->getName().c_str());
bool hasWindow = window != nullptr;
bool focused = false;