From d1de10c606d16059099fd41a26425f6d20f8f899 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 28 Feb 2024 23:52:07 +0100 Subject: [PATCH] fix: Pressing buttons while window is unfocused not working --- plugins/builtin/source/content/events.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/builtin/source/content/events.cpp b/plugins/builtin/source/content/events.cpp index af9eadee5..e71117455 100644 --- a/plugins/builtin/source/content/events.cpp +++ b/plugins/builtin/source/content/events.cpp @@ -245,6 +245,8 @@ namespace hex::plugin::builtin { if (ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup)) return; + if (ImGui::IsAnyItemHovered()) + return; static ImGuiWindow *lastFocusedWindow = nullptr;