You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Viewports, Internals: added GetViewportPlatformMonitor() will a safety net to keep code portable + simplified handling of disconnected monitor in Begin().
Copy file name to clipboardexpand all lines: imgui_internal.h
+5-3
Original file line number
Diff line number
Diff line change
@@ -1542,6 +1542,7 @@ struct ImGuiContext
1542
1542
ImGuiViewportP* MouseViewport;
1543
1543
ImGuiViewportP* MouseLastHoveredViewport; // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag.
1544
1544
ImGuiID PlatformLastFocusedViewportId;
1545
+
ImGuiPlatformMonitor FallbackMonitor; // Virtual monitor used as fallback if backend doesn't provide monitor information.
1545
1546
int ViewportFrontMostStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter
0 commit comments