mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Internals: Backport HoveredWindowUnderMovingWindow code from Docking branch.
(effectively allowing a window to be a drag payload without have to make it _NoInputs)
This commit is contained in:
		| @@ -1136,6 +1136,7 @@ struct ImGuiContext | ||||
|     ImGuiWindow*            CurrentWindow;                      // Window being drawn into | ||||
|     ImGuiWindow*            HoveredWindow;                      // Will catch mouse inputs | ||||
|     ImGuiWindow*            HoveredRootWindow;                  // Will catch mouse inputs (for focus/move only) | ||||
|     ImGuiWindow*            HoveredWindowUnderMovingWindow;     // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. | ||||
|     ImGuiWindow*            MovingWindow;                       // Track the window we clicked on (in order to preserve focus). The actually window that is moved is generally MovingWindow->RootWindow. | ||||
|     ImGuiWindow*            WheelingWindow;                     // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. | ||||
|     ImVec2                  WheelingWindowRefMousePos; | ||||
| @@ -1342,6 +1343,7 @@ struct ImGuiContext | ||||
|         CurrentWindow = NULL; | ||||
|         HoveredWindow = NULL; | ||||
|         HoveredRootWindow = NULL; | ||||
|         HoveredWindowUnderMovingWindow = NULL; | ||||
|         MovingWindow = NULL; | ||||
|         WheelingWindow = NULL; | ||||
|         WheelingWindowTimer = 0.0f; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user