|
@@ -951,7 +951,6 @@ struct ImGuiContext
|
|
ImVector<ImGuiWindow*> CurrentWindowStack;
|
|
ImVector<ImGuiWindow*> CurrentWindowStack;
|
|
ImGuiStorage WindowsById;
|
|
ImGuiStorage WindowsById;
|
|
int WindowsActiveCount;
|
|
int WindowsActiveCount;
|
|
- int WindowsFrontMostStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter
|
|
|
|
ImGuiWindow* CurrentWindow; // Being drawn into
|
|
ImGuiWindow* CurrentWindow; // Being drawn into
|
|
ImGuiWindow* HoveredWindow; // Will catch mouse inputs
|
|
ImGuiWindow* HoveredWindow; // Will catch mouse inputs
|
|
ImGuiWindow* HoveredRootWindow; // Will catch mouse inputs (for focus/move only)
|
|
ImGuiWindow* HoveredRootWindow; // Will catch mouse inputs (for focus/move only)
|
|
@@ -996,6 +995,7 @@ struct ImGuiContext
|
|
ImGuiViewportP* MouseViewport;
|
|
ImGuiViewportP* MouseViewport;
|
|
ImGuiViewportP* MouseLastHoveredViewport; // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag.
|
|
ImGuiViewportP* MouseLastHoveredViewport; // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag.
|
|
ImGuiID PlatformLastFocusedViewport; // Record of last focused platform window/viewport, when this changes we stamp the viewport as front-most
|
|
ImGuiID PlatformLastFocusedViewport; // Record of last focused platform window/viewport, when this changes we stamp the viewport as front-most
|
|
|
|
+ int ViewportFrontMostStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter
|
|
|
|
|
|
// Navigation data (for gamepad/keyboard)
|
|
// Navigation data (for gamepad/keyboard)
|
|
ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow'
|
|
ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow'
|
|
@@ -1141,7 +1141,6 @@ struct ImGuiContext
|
|
FrameCount = 0;
|
|
FrameCount = 0;
|
|
FrameCountEnded = FrameCountPlatformEnded = FrameCountRendered = -1;
|
|
FrameCountEnded = FrameCountPlatformEnded = FrameCountRendered = -1;
|
|
WindowsActiveCount = 0;
|
|
WindowsActiveCount = 0;
|
|
- WindowsFrontMostStampCount = 0;
|
|
|
|
CurrentWindow = NULL;
|
|
CurrentWindow = NULL;
|
|
HoveredWindow = NULL;
|
|
HoveredWindow = NULL;
|
|
HoveredRootWindow = NULL;
|
|
HoveredRootWindow = NULL;
|
|
@@ -1175,6 +1174,7 @@ struct ImGuiContext
|
|
CurrentViewport = NULL;
|
|
CurrentViewport = NULL;
|
|
MouseViewport = MouseLastHoveredViewport = NULL;
|
|
MouseViewport = MouseLastHoveredViewport = NULL;
|
|
PlatformLastFocusedViewport = 0;
|
|
PlatformLastFocusedViewport = 0;
|
|
|
|
+ ViewportFrontMostStampCount = 0;
|
|
|
|
|
|
NavWindow = NULL;
|
|
NavWindow = NULL;
|
|
NavId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavInputId = 0;
|
|
NavId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavInputId = 0;
|