mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Docking: Made close button enable logic consistent on dockspace. When no docked window have a close button or it is disabled on the node, the space is given to tabs.
Clarified close_button_is_visible vs close_button_is_enabled behavior in DockNodeUpdateTabBar().. (#3633, #3521) Reduced alpha of disabled close button a little bit further. Removed 'EnableCloseButton' which was actually unused (can't be infered early, need ->VisibleWindow anyway, which is not == ->ActiveWindow)
This commit is contained in:
		@@ -1233,9 +1233,8 @@ struct ImGuiDockNode
 | 
			
		||||
    ImGuiDataAuthority      AuthorityForViewport    :3;
 | 
			
		||||
    bool                    IsVisible               :1; // Set to false when the node is hidden (usually disabled as it has no active window)
 | 
			
		||||
    bool                    IsFocused               :1;
 | 
			
		||||
    bool                    HasCloseButton          :1;
 | 
			
		||||
    bool                    HasCloseButton          :1; // Provide space for a close button (if any of the docked window has one). Note that button may be hidden on window without one.
 | 
			
		||||
    bool                    HasWindowMenuButton     :1;
 | 
			
		||||
    bool                    EnableCloseButton       :1;
 | 
			
		||||
    bool                    WantCloseAll            :1; // Set when closing all tabs at once.
 | 
			
		||||
    bool                    WantLockSizeOnce        :1;
 | 
			
		||||
    bool                    WantMouseMove           :1; // After a node extraction we need to transition toward moving the newly created host window
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user