mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	WindowServer+LibGUI: Mark window bitmaps volatile in occluded windows
WindowServer now tracks whether windows are occluded (meaning that they are completely covered by one or more opaque windows sitting above them.) This state is communicated to the windows via WindowStateChanged messages, which then allow GWindow to mark its backing store volatile. This reduces the effective memory impact of windows that are not at all visible to the user. Very cool. :^)
This commit is contained in:
		
							parent
							
								
									5d1acdda82
								
							
						
					
					
						commit
						c7847d7c81
					
				
					 9 changed files with 72 additions and 10 deletions
				
			
		|  | @ -28,6 +28,7 @@ void WSWindowSwitcher::set_visible(bool visible) | |||
|     if (m_visible == visible) | ||||
|         return; | ||||
|     m_visible = visible; | ||||
|     WSWindowManager::the().recompute_occlusions(); | ||||
|     if (m_switcher_window) | ||||
|         m_switcher_window->set_visible(visible); | ||||
|     if (!m_visible) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling