mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-24 02:14:22 +00:00
This commit is contained in:
parent
6656553fa4
commit
0397321be0
4 changed files with 14 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue