Skip to content

Commit

Permalink
impr: Make windows always fully opaque when they're not docked
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Apr 27, 2024
1 parent 08fc393 commit 81982aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/gui/source/window/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 81982aa

Please sign in to comment.