mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-06 13:27:47 +00:00
This commit is contained in:
@@ -1540,7 +1540,7 @@ void ImGuiIO::AddFocusEvent(bool focused)
|
||||
// Filter duplicate
|
||||
const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_Focus);
|
||||
const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost;
|
||||
if (latest_focused == focused)
|
||||
if (latest_focused == focused || (ConfigDebugIgnoreFocusLoss && !focused))
|
||||
return;
|
||||
|
||||
ImGuiInputEvent e;
|
||||
|
||||
Reference in New Issue
Block a user