mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:02:46 +00:00 
			
		
		
		
	WindowServer: Factor out compositing from WSWindowManager into WSCompositor.
This is far from finished and the two classes are awkwardly grabbing at each other's innards, but here's a first step in the right direction.
This commit is contained in:
		
							parent
							
								
									508007f1dd
								
							
						
					
					
						commit
						ad908f1395
					
				
					 11 changed files with 487 additions and 426 deletions
				
			
		|  | @ -1,12 +1,13 @@ | |||
| #include <SharedGraphics/CharacterBitmap.h> | ||||
| #include <SharedGraphics/Font.h> | ||||
| #include <SharedGraphics/Painter.h> | ||||
| #include <SharedGraphics/StylePainter.h> | ||||
| #include <WindowServer/WSButton.h> | ||||
| #include <WindowServer/WSCompositor.h> | ||||
| #include <WindowServer/WSEvent.h> | ||||
| #include <WindowServer/WSWindow.h> | ||||
| #include <WindowServer/WSWindowFrame.h> | ||||
| #include <WindowServer/WSWindowManager.h> | ||||
| #include <WindowServer/WSWindow.h> | ||||
| #include <WindowServer/WSEvent.h> | ||||
| #include <WindowServer/WSButton.h> | ||||
| #include <SharedGraphics/CharacterBitmap.h> | ||||
| #include <SharedGraphics/Painter.h> | ||||
| #include <SharedGraphics/Font.h> | ||||
| #include <SharedGraphics/StylePainter.h> | ||||
| 
 | ||||
| static const int window_titlebar_height = 19; | ||||
| 
 | ||||
|  | @ -294,7 +295,7 @@ void WSWindowFrame::on_mouse_event(const WSMouseEvent& event) | |||
|         int hot_area_row = min(2, window_relative_y / (outer_rect.height() / 3)); | ||||
|         int hot_area_column = min(2, window_relative_x / (outer_rect.width() / 3)); | ||||
|         wm.set_resize_candidate(m_window, direction_for_hot_area[hot_area_row][hot_area_column]); | ||||
|         wm.invalidate_cursor(); | ||||
|         WSCompositor::the().invalidate_cursor(); | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling